-
Notifications
You must be signed in to change notification settings - Fork 606
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
DOCKER_BUILDKIT=1 is not passed when using docker-compose #2818
Conversation
DOCKER_BUILDKIT=1 is not passed when using docker-compose it needs to be changed to DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 in order to make e.g: make localnet-build works
It seems like make localnet-build and other localnet commands works for me. Tagging @niccoloraspa in case I'm missing something |
I think it was addressed in #2795 |
Here is a output:
|
Makefile
Outdated
|
||
docker-build-debug: | ||
@DOCKER_BUILDKIT=1 docker build -t osmosis:${COMMIT} --build-arg BASE_IMG_TAG=debug -f Dockerfile . | ||
@DOCKER_BUILDKIT=1 docker tag osmosis:${COMMIT} osmosis:debug | ||
NFTvuln1155 docker build -t osmosis:${COMMIT} --build-arg BASE_IMG_TAG=debug -f Dockerfile . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... what?
Does seem like But can you explain the nftvuln line / why you included it? |
changed only from @DOCKER_BUILDKIT=1 to @DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1
sorry for that but i have been fixing it in GitHub web :D now should be ok regarding
looks like i have been doing two things at the same time and copy paste some nonsense sorry |
fix spaces
Makefile
Outdated
localnet-build-state-export: | ||
@DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f tests/localosmosis/state_export/docker-compose.yml build | ||
|
||
localnet-start-state-export: | ||
@docker-compose -f tests/localosmosis/state_export/docker-compose.yml up | ||
|
||
localnet-startd-state-export: | ||
@docker-compose -f tests/localosmosis/state_export/docker-compose.yml up -d | ||
|
||
localnet-stop-state-export: | ||
@docker-compose -f tests/localosmosis/docker-compose.yml down | ||
|
||
localnet-remove-state-export: | ||
@docker-compose -f tests/localosmosis/mainnet_state/docker-compose-state-export.yml down | ||
rm -rf $(PWD)/tests/localosmosis/state_export/.osmosisd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @niccoloraspa @czarcas7ic for these, as they are new or different than the old ones.
Everything else LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure sounds legit
I think there are too many changes. I'm happy to add For example: docker-build-debug:
@DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker build -t osmosis:${COMMIT} --build-arg BASE_IMG_TAG=debug -f Dockerfile . This doesn't make sense. Same for all other targets To avoid any merge conflicts maybe it's best to fetch main and reapply the relevant changes. |
sorry for wasting your time :D
Hey @punishell, thanks for the quick updates.
Also, there are conflicts to be solved with the current Makefile, could you fix those? After that, we can merge. P.S. I saw the comment on the commit about wasting our time . Please don't feel this way, we are grateful for your contributions, and reviewing work is expected. |
* DOCKER_BUILDKIT=1 is not passed when using docker-compose DOCKER_BUILDKIT=1 is not passed when using docker-compose it needs to be changed to DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 in order to make e.g: make localnet-build works * Update Makefile changed only from @DOCKER_BUILDKIT=1 to @DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 * Update Makefile fix spaces * Update Makefile sorry for wasting your time :D * Update Makefile * Update Makefile Co-authored-by: Niccolo Raspa <[email protected]> (cherry picked from commit 3c7eab9)
) * DOCKER_BUILDKIT=1 is not passed when using docker-compose DOCKER_BUILDKIT=1 is not passed when using docker-compose it needs to be changed to DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 in order to make e.g: make localnet-build works * Update Makefile changed only from @DOCKER_BUILDKIT=1 to @DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 * Update Makefile fix spaces * Update Makefile sorry for wasting your time :D * Update Makefile * Update Makefile Co-authored-by: Niccolo Raspa <[email protected]> (cherry picked from commit 3c7eab9) Co-authored-by: punishell <[email protected]>
DOCKER_BUILDKIT=1 is not passed when using docker-compose it needs to be changed to DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 in order to make e.g:
make localnet-build works
Closes: #XXX
What is the purpose of the change
changes are needed to make commands works e.g: make localnet-build works
Brief Changelog
(for example:)
Testing and Verifying
(Please pick one of the following options)
This change is already covered by existing tests.
This change added tests and can be verified as follows:
(example:)
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? ( no)