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

Error when building the offchain-worker in docker: invalid docker-compose.yml #1127

Closed
clangenb opened this issue Dec 15, 2022 · 6 comments · Fixed by #1135
Closed

Error when building the offchain-worker in docker: invalid docker-compose.yml #1127

clangenb opened this issue Dec 15, 2022 · 6 comments · Fixed by #1135

Comments

@clangenb
Copy link
Contributor

clangenb commented Dec 15, 2022

A client of us got the following error, when executing the command from the docs: https://docs.integritee.network/4-development/4.6-demos/4.6.2-tocw-demo

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yml -f demo-indirect-invocation.yml build --build-arg WORKER_MODE_ARG=offchain-worker
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for networks: 'integritee-test-network'
Unsupported config option for services: 'integritee-worker-2'
@clangenb
Copy link
Contributor Author

@murerfel any idea?

@Kailai-Wang
Copy link
Contributor

I remember I had similar issues and it's highly possible that his/her docker-compose version is too old

@clangenb
Copy link
Contributor Author

Cool, thanks for the prompt reply. I have relayed the message. I could find in our docs now that the docker version needs to be >1.25. So maybe this is indeed the issue.

@clangenb clangenb changed the title Error when building the offchain-worker in docker Error when building the offchain-worker in docker: invalid docker-compose.yml Dec 16, 2022
@j-ti
Copy link

j-ti commented Dec 17, 2022

Thank you for your reply, so the built runs, when I use docker compose plugin (i.e. V2.14) instead of the docker-compose (v1.25) by replacing the '-' with a space:
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose -f docker-compose.yml -f demo-indirect-invocation.yml build --build-arg WORKER_MODE_ARG=offchain-worker

Remark: In the doc it states version >= 1.25.0 is ok, which is why I was confident, that it was not the problem.

@clangenb
Copy link
Contributor Author

Alright thanks for the heads-up, we will update the docs!

@clangenb
Copy link
Contributor Author

clangenb commented Jan 3, 2023

Interesting, the two variants, with and without the -, resolve to the same docker compose version on my machine. I have updated the docs such that docker should be ≥ 2.0.0 to ensure that docker compose is always ≥ 2.0.0 too.

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 a pull request may close this issue.

3 participants