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
to make a build, successfully. If afterwards, I add/modify any line that has to do with conda, for example by appending this line:
RUN conda install samtools -y
and retry to build, I am always getting something like this error:
CorruptedEnvironmentError: The target environment has been corrupted. Corrupted environments most commonly
occur when the conda process is force-terminated while in an unlink-link
transaction.
environment location: /home/root/miniforge3
corrupted file: /home/root/miniforge3/conda-meta/.wh.ruamel.yaml-0.18.6-py312h98912ed_0.json
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1
(The corrupted package could be any package installed in the previous build.)
which forces me to delete the cache and retry installation. Of course this runs alright, however kaniko completely loses its purpose, and is only meaningful when I change other things in the Dockerfile. Of course, changing miniconda requirements is the most frequent operation I do, as I am using Python and R, and any new dependency coming up needs to have the image updated.
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
The text was updated successfully, but these errors were encountered:
Let's say I have this example Dockerfile:
and this
cloudbuild.yaml
:which needs all of those flags for a variety of stupid reasons (see this).
Then, I use this command
to make a build, successfully. If afterwards, I add/modify any line that has to do with conda, for example by appending this line:
and retry to build, I am always getting something like this error:
(The corrupted package could be any package installed in the previous build.)
which forces me to delete the cache and retry installation. Of course this runs alright, however kaniko completely loses its purpose, and is only meaningful when I change other things in the Dockerfile. Of course, changing miniconda requirements is the most frequent operation I do, as I am using Python and R, and any new dependency coming up needs to have the image updated.
--cache
flagThe text was updated successfully, but these errors were encountered: