`--Repo2Docker.base_image` fail during `install-base-env.bash`
rgaiacs opened this issue · comments
When trying to resolve #1296, when I run
repo2docker \
--no-run \
--Repo2Docker.base_image=gesiscss/repo2docker_base_image:latest \
--user-name methodshub \
--user-id 1001 \\
--image-name methodshub/gesis-methods-hub/minimal-example-rstats-package:9d7a3197e34152dd5779e2e636f0f1311a2d83c6 \
https://github.com/GESIS-Methods-Hub/minimal-example-rstats-package.git
I got
Step 28/65 : COPY --chown=1001:1001 build_script_files/-2fhome-2franiere-2fmicromamba-2fenvs-2fmethodshub-2flib-2fpython3-2e11-2fsite-2dpackages-2frepo2docker-2fbuildpacks-2fconda-2finstall-2dbase-2denv-2ebash-0d59e0 /tmp/install-base-env.bash
---> Using cache
---> e526d15f955d
Step 29/65 : RUN TIMEFORMAT='time: %3R' bash -c 'time /tmp/install-base-env.bash' && rm -rf /tmp/install-base-env.bash /tmp/env
---> Running in 5d639e22397e
++ dirname /tmp/install-base-env.bash
+ cd /tmp
+ export MAMBA_VERSION=1.4.0
+ MAMBA_VERSION=1.4.0
+ export CONDA_VERSION=23.1.0
+ CONDA_VERSION=23.1.0
+ URL=https://anaconda.org/conda-forge/micromamba/1.4.0/download/linux-64/micromamba-1.4.0-0.tar.bz2
+ unset HOME
+ mkdir -p /srv/conda
+ export MICROMAMBA_EXE=/usr/local/bin/micromamba
+ MICROMAMBA_EXE=/usr/local/bin/micromamba
+ wget -qO- https://anaconda.org/conda-forge/micromamba/1.4.0/download/linux-64/micromamba-1.4.0-0.tar.bz2
+ tar -xvj bin/micromamba
tar (grandchild): bzip2: Cannot exec: No such file or directory
tar (grandchild): Error is not recoverable: exiting now
tar: Child died with signal 13
tar: Error is not recoverable: exiting now
time: 1.277
time: 1.280
Removing intermediate container 5d639e22397e
The command '/bin/sh -c TIMEFORMAT='time: %3R' bash -c 'time /tmp/install-base-env.bash' && rm -rf /tmp/install-base-env.bash /tmp/env' returned a non-zero code: 2INFO [2023-07-13 09:52:25] methodshub/gesis-methods-hub/minimal-example-rstats-package:9d7a3197e34152dd5779e2e636f0f1311a2d83c6 NOT built.
The Dockerfile
for the custom base image is buildpack-deps:23.04-curl
uses as starting point. Source code available at https://github.com/GESIS-Methods-Hub/repo2docker_base_image/blob/main/Dockerfile.
Closing as out of date.