romi / plant-imager

ROMI library controlling the PlantImager (hardware) or the VirtualPlantImager (Blender) to acquire images of (virtual) single potted plants.
https://romi.github.io/plant-imager/
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Failing to build a docker image #38

Closed fabfabBesnard closed 3 years ago

fabfabBesnard commented 3 years ago

I tried to build a docker image of the plant-imager/master branch on the amazon server. After updating the local repo (git pull/submodule update), I try: ./docker/plantimager/build.sh The process stops very quickly:

Sending build context to Docker daemon  33.39MB
Step 1/19 : FROM continuumio/miniconda3
 ---> 52daacd3dd5d
Step 2/19 : ARG USER_NAME=scanner
 ---> Using cache
 ---> 81a73251a2db
Step 3/19 : ARG USER_ID=1000
 ---> Using cache
 ---> a1982677d638
Step 4/19 : ARG GROUP_NAME=scanner
 ---> Using cache
 ---> d3e22aef82f2
Step 5/19 : ARG GROUP_ID=1000
 ---> Using cache
 ---> 4cecc713ce3f
Step 6/19 : ENV DB_LOCATION="/home/${USER_NAME}/db"
 ---> Using cache
 ---> 7544d4e09793
Step 7/19 : ENV PATH=$PATH:"/home/${USER_NAME}}/.local/bin"
 ---> Using cache
 ---> 0ec662286cf1
Step 8/19 : RUN apt-get update && apt-get install -y --no-install-recommends     nano &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Running in 4cbaf32ce925
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends     nano &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Build time is 2 s
jlegrand62 commented 3 years ago

The local continuumio/miniconda3 image was too old, to fix this I added the --pull option to your build command. This updated the old image to a new one and led to a successful build!

FYI: No need to add this option to your future calls, the local image is now up to date!