Skip to content

Commit

Permalink
skips buildkit check in codebuild (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxesn authored Oct 12, 2023
1 parent 403b5ec commit 297c769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,13 @@ ensure-docker: ensure/docker
exit 1; \
fi

# in code build we use the /buildkit.sh to launch buildkitd when we need it
# in that case skip this check
.PHONY: ensure-buildkitd-host
ensure-buildkitd-host:
@if [ -z "$${BUILDKIT_HOST:-}" ] && [ ! -S /run/buildkit/buildkitd.sock ]; then \
@if [ "true" = "$(CODEBUILD_CI)" ] && [ "true" = "$(IS_ON_BUILDER_BASE)" ]; then \
exit 0; \
elif [ -z "$${BUILDKIT_HOST:-}" ] && [ ! -S /run/buildkit/buildkitd.sock ]; then \
echo "Please set the 'BUILDKIT_HOST' environment variable."; \
echo "If you want to run buildkitd via a docker container use"; \
echo "export BUILDKIT_HOST=docker-container://buildkitd && make run-buildkit-and-registry"; \
Expand Down

0 comments on commit 297c769

Please sign in to comment.