Skip to content

Commit

Permalink
Set BUILDKIT=0 in def build
Browse files Browse the repository at this point in the history
  • Loading branch information
endline committed Nov 21, 2024
1 parent c08c9bc commit a113e4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/src/jobs/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
path: '~/audius-protocol'
- run: AUDIUS_DEV=false bash ~/audius-protocol/dev-tools/setup.sh
- docker-login
- run: . ~/.profile; DOCKER_BUILDKIT=0 audius-compose push --prod "<< parameters.service >>"
- run: . ~/.profile; audius-compose push --prod "<< parameters.service >>"
- docker-logout
- docker-prune
- run:
Expand Down
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

0 comments on commit a113e4e

Please sign in to comment.