Skip to content

Commit

Permalink
[TASK] runTests.sh: Switch to a new set of test images
Browse files Browse the repository at this point in the history
New images are to be found on official TYPO3
https://hub.docker.com/u/typo3 account.

Most images are based on alpine instead of ubuntu and
are thus significantly smaller than the old ones. For
example, the php 7.4 image is now ~170MB instead of ~500MB.

Image definitions are found and maintained at
https://gitlab.typo3.org/core-testing/testing-infrastructure/

* typo3/core-testing-phpXY: Images based on the official
  PHP alpine builds, extended with commands and modules
  we need.

* typo3/core-testing-js: Image based on official node
  image, with current yarn.

* typo3/core-testing-js-chrome: As above, but with chrome
  for javascript unit testing.

* typo3/core-testing-mssql2019: Image for microsoft sql
  server that includes a brutal hack to force sql server
  is fine if databases are located on a tmpfs (CI does that).

* postgres/XY-alpine: Drop-in replacement using the -alpine
  version that is ~1/3 in size.

Change-Id: I3dc57056052d3364ee925ba3a3216d95afe55f57
Resolves: #93403
Releases: master, 10.4, 9.5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67621
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lolli42 committed Feb 1, 2021
1 parent 21821f8 commit a6ecc6c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
12 changes: 6 additions & 6 deletions Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ Options:
Activate dry-run in CGL check that does not actively change files and only prints broken ones.
-u
Update existing typo3gmbh/phpXY:latest docker images. Maintenance call to docker pull latest
Update existing typo3/core-testing-*:latest docker images. Maintenance call to docker pull latest
versions of the main php images. The images are updated once in a while and only the youngest
ones are supported by core testing. Use this if weird test errors occur. Also removes obsolete
image versions of typo3gmbh/phpXY.
image versions of typo3/core-testing-*.
-v
Enable verbose script output. Shows variables and docker commands.
Expand Down Expand Up @@ -617,10 +617,10 @@ case ${TEST_SUITE} in
docker-compose down
;;
update)
# pull typo3gmbh/phpXY:latest versions of those ones that exist locally
docker images typo3gmbh/php*:latest --format "{{.Repository}}:latest" | xargs -I {} docker pull {}
# remove "dangling" typo3gmbh/phpXY images (those tagged as <none>)
docker images typo3gmbh/php* --filter "dangling=true" --format "{{.ID}}" | xargs -I {} docker rmi {}
# pull typo3/core-testing-*:latest versions of those ones that exist locally
docker images typo3/core-testing-*:latest --format "{{.Repository}}:latest" | xargs -I {} docker pull {}
# remove "dangling" typo3/core-testing-* images (those tagged as <none>)
docker images typo3/core-testing-* --filter "dangling=true" --format "{{.ID}}" | xargs -I {} docker rmi {}
;;
*)
echo "Invalid -s option argument ${TEST_SUITE}" >&2
Expand Down
Loading

0 comments on commit a6ecc6c

Please sign in to comment.