diff --git a/.circleci/src/jobs/push-docker-image.yml b/.circleci/src/jobs/push-docker-image.yml index f42fa11472c..70e20ebb628 100644 --- a/.circleci/src/jobs/push-docker-image.yml +++ b/.circleci/src/jobs/push-docker-image.yml @@ -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: diff --git a/dev-tools/audius-compose b/dev-tools/audius-compose index dc9e9d30130..bd6387c8b83 100755 --- a/dev-tools/audius-compose +++ b/dev-tools/audius-compose @@ -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", @@ -243,6 +249,7 @@ def build( *args, *services, ], + env=env, ) if proc.returncode != 0: