Closed sypets closed 9 months ago
Hi @sypets,
thank you very much, will look into it when back from vacation.
regarding the version
in compose.yml
I also think that this is unnecessary and even outdated, I dropped it on purpose:
The top-level version property is defined by the Compose Specification for backward compatibility. It is only informative.
https://github.com/compose-spec/compose-spec/blob/master/04-version-and-name.md
Why do you think it is required?
regarding the version in compose.yml I also think that this is unnecessary and even outdated, I dropped it on purpose:
When running the script locally, I got error messages. Using the version, it disappeared. To be honest, I am not terribly familiar with the details.
Long term it might make more sense to replace the docker-compose part, core and "tea" extension are going with a docker / podman solution without docker-compose and runTests.sh script has changed considerably:
The error I got without version was:
# Build/Scripts/runTests.sh -s functional
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'mariadb10'
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'unit'
Thanks for the info with the version, never had a case like that yet.
Hi @sypets
Unsupported config option for services: 'mariadb10'
May this be caused by an outdated compose CLI version? Remember similar behavior only with compose CLI v1
See https://docs.docker.com/compose/compose-file/compose-versioning/#versioning
Version 1. This is specified by omitting a version key at the root of the YAML.
compose CLI v1 would fall back to compose file definition v1 if version
is omitted.
Which would explain the error, there is no "service" section in compose file definition v1.
We can leave the version: 3
, but i strongly suggest that you update your compose CLI to v2.
I assume compose CLI v1 also does not support compose.yml
file name - which I tend to change too.
Just noticed you longer explanation - which is basically the same i wrote.
Just the docker-compose
doesn't need to be v1, v2 can also provide a docker-compose
alias. There was a package for this.
Thanks all - will include relevant parts into https://github.com/netresearch/t3x-rte_ckeditor_image/pull/271
This is not meant to be merged, it is a demo only.
Branch fix_build_errors was used, PR #271
version: "3"
to docker-compose.ymlUnfortunately, the functional test now shows a deprecation warning, but it will return 0 (ok).
We could get rid of that by changing FunctionalTests.xml to be less strict with deprecations.
(I find it difficult to support 2 TYPO3 versions in one branch of an extension. I personally like to be strict and not have any deprecations at all, so I don't do it. But I realize, some (a lot of) extension authors like to support 2 TYPO3 versions in one branch.)