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

Disable buildkit in CI so docker layer caching actually works #10500

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dev-tools/audius-compose
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ def build(
protocol_dir, discovery_provider_replicas, elasticsearch_replicas, prod
)

# Include DOCKER_BUILDKIT=0 in the environment
# see bug with buildkit failing to cache docker layers
# https://github.com/docker/compose/issues/11804
env = os.environ.copy()
env["DOCKER_BUILDKIT"] = "0"

proc = subprocess.run(
[
"docker",
Expand Down Expand Up @@ -243,6 +249,7 @@ def build(
*args,
*services,
],
env=env,
)

if proc.returncode != 0:
Expand Down