kaniko
kaniko copied to clipboard
Saving file . for later use fails
Actual behavior
INFO[0029] Running: [/bin/sh -c npm install]
{{...some NPM output ommited...}}
added 1635 packages from 1037 contributors in 15.068s
INFO[0044] Taking snapshot of full filesystem...
INFO[0054] Pushing layer {{...redacted image repo...}}/cache:c0d37dfe3ddc014d09232c69bed53244ad6d2d61fb9d03162688c72de050574f to cache now
INFO[0060] Saving file . for later use
error building image: could not save file: read /dev/agpgart: invalid argument
Expected behavior
This should simply work as the same Dockerfile used with docker
works.
Step 3/34 : RUN npm install
{{...some NPM output ommited...}}
added 1635 packages from 1037 contributors in 16.028s
Removing intermediate container f98bb65dd64a
---> eac191bb4e90
Step 4/34 : FROM node:10.15.3 AS react-client-build-dev
To Reproduce
Running with gitlab-runner 13.3.2
Using Kubernetes executor with image gcr.io/kaniko-project/executor:debug-v1.2.0 ...
Steps to reproduce the behavior:
-
/kaniko/executor --cache=true --reproducible --context=$CI_PROJECT_DIR --dockerfile=$CI_PROJECT_DIR/Dockerfile --destination=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --cache-repo=$CI_REGISTRY_IMAGE/cache --snapshotMode=redo
Additional Information
FROM node:10.15.3 AS react-client-base
ADD ./client .
RUN npm install
FROM node:10.15.3 AS react-client-build-dev
COPY --from=react-client-base . .
RUN npm run build:dev
FROM node:10.15.3 AS react-client-build-tst
COPY --from=react-client-base . .
RUN npm run build:test
FROM node:10.15.3 AS react-client-build-prod
COPY --from=react-client-base . .
RUN npm run build:prod
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
WORKDIR /app
ENV ASPNETCORE_URLS="http://*:80"
EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /server/src
ENV DOTNET_RUNNING_IN_CONTAINER true
ENV COMPlus_TieredCompilation 1
COPY . .
RUN dotnet restore ./server/src/MyApp.Server.Api -s https://api.nuget.org/v3/index.json -s http://nuget.someserver.com/nuget
FROM build AS publish
RUN dotnet publish ./server/src/MyApp.Server.Api --no-restore -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
COPY --from=react-client-build-dev /build /app/client-dev/build
COPY --from=react-client-build-dev /src/i18n /app/client-dev/build/i18n
COPY --from=react-client-build-tst /build /app/client-tst/build
COPY --from=react-client-build-tst /src/i18n /app/client-tst/build/i18n
COPY --from=react-client-build-prod /build /app/client-prod/build
COPY --from=react-client-build-prod /src/i18n /app/client-prod/build/i18n
ENTRYPOINT ["dotnet", "MyApp.Server.Api.dll"]
- gcr.io/kaniko-project/executor:debug-v1.2.0
Triage Notes for the Maintainers
Description | Yes/No |
---|---|
Please check if this a new feature you are proposing |
|
Please check if the build works in docker but not in kaniko |
|
Please check if this error is seen when you use --cache flag |
|
Please check if your dockerfile is a multistage dockerfile |
|