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
repo2docker fails when a non-Dockerfile build hits the following step:
Step 40/53 : RUN TIMEFORMAT='time: %3R' bash -c 'time ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "environment.yml" && time ${MAMBA_EXE} clean --all -f -y && ${MAMBA_EXE} list -p ${NB_PYTHON_PREFIX} '
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in 35f6725e11e1
CondaError: Error encountered while attempting to create cache directory.
Directory: /home/sknapp/.cache/conda/notices
Exception: [Errno 13] Permission denied: '/home/sknapp/.cache/conda'
time: 0.407
it appears that repo2docker might not be inheriting or passing on the correct permissions to allow writing to the local filesystem during the mamba env update step.
Expected behaviour
i would expect mamba to be able to update the conda env. :)
Actual behaviour
it fails.
How to reproduce
get a mac w/an M chip, and run repo2docker --user-id 1000 --no-run --Repo2Docker.platform=linux/amd64 --Repo2Docker.base_image=docker.io/library/buildpack-deps:jammy . on an image dir that doesn't have a Dockerfile
fail!
Your personal set up
OS: OSX sonoma
Docker version: 26.1.1
repo2docker version: 2024.03.0
The text was updated successfully, but these errors were encountered:
Bug description
repo2docker
fails when a non-Dockerfile build hits the following step:the commands i tried were:
repo2docker --user-id 501 --no-run --Repo2Docker.platform=linux/amd64 --Repo2Docker.base_image=docker.io/library/buildpack-deps:jammy .
repo2docker --no-run --Repo2Docker.platform=linux/amd64 --Repo2Docker.base_image=docker.io/library/buildpack-deps:jammy .
repo2docker --user-id 1000 --no-run --Repo2Docker.platform=linux/amd64 --Repo2Docker.base_image=docker.io/library/buildpack-deps:jammy .
the image that failed to build: https://github.com/berkeley-dsep-infra/datahub/tree/staging/deployments/data100/image
however, if you build an image that's based on a
Dockerfile
, you're good to go! you can try yourself with this image: https://github.com/berkeley-dsep-infra/datahub/tree/staging/deployments/dev/images/defaultit appears that
repo2docker
might not be inheriting or passing on the correct permissions to allow writing to the local filesystem during themamba env update
step.Expected behaviour
i would expect
mamba
to be able to update the conda env. :)Actual behaviour
it fails.
How to reproduce
repo2docker --user-id 1000 --no-run --Repo2Docker.platform=linux/amd64 --Repo2Docker.base_image=docker.io/library/buildpack-deps:jammy .
on an image dir that doesn't have a DockerfileYour personal set up
The text was updated successfully, but these errors were encountered: