ted
ted
CCoder.com
Created by ted on 3/15/2024 in #help
Envbuilder in Coder not using caches at all despite configuring CACHE_REPO
Hello, I am using coder with envbuilder but I seem to be getting 0 cache hits even when restarting the same workspace with 0 changes. I have configured CACHE_REPO to use an empty AWS ECR image repository and I see evbuilder successfully checking for caches and, supposedly,
#1: 📦 Cloned repository! [46.039909689s]
#2: Deleting filesystem...
#2: 🏗️ Building image...
#2: Using dockerignore file: /workspaces/project/.dockerignore
#2: Retrieving image manifest python:3.9-slim
#2: Retrieving image python:3.9-slim from registry index.docker.io
#2: Built cross stage deps: map[]
#2: Retrieving image manifest python:3.9-slim
#2: Returning cached image manifest
#2: Executing 0 build triggers
#2: Building stage 'python:3.9-slim' [idx: '0', base-idx: '-1']
#2: Checking for cached layer MYREMOTERPEO/image:d00475f8d556bc445027bebba8d27c1a4efb356acab9e5ecc8aa4b18719d9f6f...
...
#2: Pushing layer MYREMOTERPEO/image:d00475f8d556bc445027bebba8d27c1a4efb356acab9e5ecc8aa4b18719d9f6f to cache now
...
#2: Taking snapshot of files...
#2: Pushing layer MYREMOTERPEO/image:d00475f8d556bc445027bebba8d27c1a4efb356acab9e5ecc8aa4b18719d9f6f to cache now
...
#1: 📦 Cloned repository! [46.039909689s]
#2: Deleting filesystem...
#2: 🏗️ Building image...
#2: Using dockerignore file: /workspaces/project/.dockerignore
#2: Retrieving image manifest python:3.9-slim
#2: Retrieving image python:3.9-slim from registry index.docker.io
#2: Built cross stage deps: map[]
#2: Retrieving image manifest python:3.9-slim
#2: Returning cached image manifest
#2: Executing 0 build triggers
#2: Building stage 'python:3.9-slim' [idx: '0', base-idx: '-1']
#2: Checking for cached layer MYREMOTERPEO/image:d00475f8d556bc445027bebba8d27c1a4efb356acab9e5ecc8aa4b18719d9f6f...
...
#2: Pushing layer MYREMOTERPEO/image:d00475f8d556bc445027bebba8d27c1a4efb356acab9e5ecc8aa4b18719d9f6f to cache now
...
#2: Taking snapshot of files...
#2: Pushing layer MYREMOTERPEO/image:d00475f8d556bc445027bebba8d27c1a4efb356acab9e5ecc8aa4b18719d9f6f to cache now
...
Every single Dockerfile step is ran even though I seem to be pushing layers to the cache repo every image build. Am I missing anything?
19 replies