Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove build section for docker compose #476

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jerome-benoit
Copy link
Contributor

docker compose will ignore any build section in docker-compose.yml if image section is specified, unlike the deprecated docker-compose. And the build section is not needed anyway.

The docker-compose.test.yml will very likely not work with docker compose because of image and build section specified together. That PR does not remove the wrong image section in it.

docker compose will ignore any build section in docker-compose.yml if
image section is specified, unlike the deprecated docker-compose.
And the build section is not needed anyway.

The docker-compose.test.yml will very likely not work with docker
compose because of image and build section specified together.
That PR does not remove the wrong image section in it.

Signed-off-by: Jérôme Benoit <[email protected]>
@iterativv
Copy link
Owner

What is the alternative for custom file then ?

@jerome-benoit
Copy link
Contributor Author

What is the alternative for custom file then ?

If you need to include image customisation with docker compose, you just remove the image section in the docker-compose.yml file and use build section alone referencing a Dockerfile. The image in the Dockerfile will be used as the reference image to customize.

The docker-compose.xml does not need to install the testing requirements to run NFIX. It's only needed in the testing docker-compose-... file.

The CI is using (incorrectly) direct image building from the docker file Dockerfile.custom instead of docker compose probably because docker compose was failing at including the testing requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants