eboileau / dhart-utils

Utilities for the DHART (Digital HeART) portal.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

error: docker build --rm -t wrangling:latest -f docker/wrangling/Dockerfile . #2

Open sbosseva opened 8 months ago

sbosseva commented 8 months ago

accession: docker build --rm -t accession:latest -f docker/accession/Dockerfile . runs without issue and builds, however when I try to run docker build --rm -t wrangling:latest -f docker/wrangling/Dockerfile . I keep getting the same error (I will attach a file with the full log): "ERROR: failed to solve: process "/bin/bash -o errexit -o nounset -o pipefail -c apt -y --install-recommends install dirmngr software-properties-common apt-transport-https \t&& apt-key adv --keyserver keyserver.ubuntu.com --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7' \t&& add-apt-repository 'deb http://cloud.r-project.org/bin/linux/debian bullseye-cran40/' \t&& apt update \t&& apt -y install libssl-dev libcurl4-openssl-dev libxml2-dev \t&& apt -y install r-base" did not complete successfully: exit code: 100".

I deleted all containers and images, I also tried docker system prune, I was always under under dhart-utils. When nothing worked I deleted the whole environment and did the Quickstart procedure all over and I still keep getting this error. It seems like when trying to install the R base package something doesn't work properly. Line 5 in the Dockerfile seems to be the troublesome one. ERROR.pdf

eboileau commented 8 months ago

I cannot reproduce this error, but I suspect this is due to your build cache. It may be that previously built layers using the old definitions are cached and are reused...

Please try docker system prune --all and docker builder prune --all. Then to be sure you can build w/o cache with docker build --no-cache --rm -t wrangling:latest -f docker/wrangling/Dockerfile .

sbosseva commented 8 months ago

These ran successfully docker system prune --all and docker builder prune --all,, but after that when I ran docker build --no-cache --rm -t wrangling:latest -f docker/wrangling/Dockerfile . I got the exact same error.