You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
skaffold build
Generating tags...
- service-1 -> 1.2.3.4:32000/service-1:latest
- service-2 -> 1.2.3.4:32000/service-2:latest
- service-3 -> 1.2.3.4:32000/service-3:latest
Checking cache...
- service-1: Not found. Building
- service-2: Not found. Building
- service-3: Not found. Building
Building [service-3]...
Sending build context to Docker daemon 5.12kB
Step 1/4 : FROM python:3
Step 2/4 : ARG service_dir
Step 3/4 : COPY $service_dir /general
Step 4/4 : CMD ["python3", "-c", "while True: continue"]
Successfully built 3abe1820e6ec
Successfully tagged 10.4.6.71:32000/service-3:latest
Building [service-1]...
Sending build context to Docker daemon 5.12kB
Step 1/4 : FROM python:3
Step 2/4 : ARG service_dir
Step 3/4 : COPY $service_dir /general
Step 4/4 : CMD ["python3", "-c", "while True: continue"]
Successfully built ca63b88113c0
Successfully tagged 10.4.6.71:32000/service-1:latest
Building [service-2]...
Sending build context to Docker daemon 5.12kB
Step 1/4 : FROM python:3
Step 2/4 : ARG service_dir
Step 3/4 : COPY $service_dir /general
Step 4/4 : CMD ["python3", "-c", "while True: continue"]
Successfully built 8a6e49f61653
This was using v1.16.0
Actual behavior
skaffold build
Generating tags...
- service-1 -> 1.2.3.4:32000/service-1:latest
- service-2 -> 1.2.3.4:32000/service-2:latest
- service-3 -> 1.2.3.4:32000/service-3:latest
Checking cache...
- service-1: Not found. Building
- service-2: Not found. Building
- service-3: Not found. Building
Building [service-3]...
Sending build context to Docker daemon 5.12kB
Step 1/4 : FROM python:3
Step 2/4 : ARG service_dir
Step 3/4 : COPY $service_dir /general
Building [service-1]...
Building [service-2]...
unable to stream build output: COPY failed: stat /var/lib/docker/tmp/docker-builder804227384/service_3: no such file or directory
Thanks @ahmad-musleh for the detailed issue.
I was able to produce this issue locally.
Looks like, this is due to "dockerfile path" being the key for caching dependencies.
Since service_1, service_2 and service_3 use the same dockerfiles.
The GetDependency when CreateTarContext is called returns cached values for both service_1 and service_2 artifact which is relative to service_3. Hence the docker command fails.
Expected behavior
This was using v1.16.0
Actual behavior
Information
Steps to reproduce the behavior
v1.17.0
where each
chart.yaml
contains the following:and Dockerfile the has an
ARG
followed by aCOPY
skaffold build
[UPDATE] simplified scenario to only include
skaffold build
The text was updated successfully, but these errors were encountered: