Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

docker build échoue à recréer une image #8

Closed
k3ck3c opened this issue Jan 21, 2018 · 5 comments
Closed

docker build échoue à recréer une image #8

k3ck3c opened this issue Jan 21, 2018 · 5 comments

Comments

@k3ck3c
Copy link

k3ck3c commented Jan 21, 2018

Bonjour

Je clone, puis docker build, échec

Ubuntu 17.10

gg@asus:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
gg@asus:~$ uname -a
Linux asus 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
gg@asus:~$ 




gg@asus:~$  cd docker_tracim/
gg@asus:~/docker_tracim$ ll
total 112
-rw-r--r--   1 gg gg     9 janv. 18 19:58 .gitignore
-rw-r--r--   1 gg gg  2605 janv. 18 19:58 README.md
drwxr-xr-x   8 gg gg  4096 janv. 18 19:58 .git
drwxr-xr-x   2 gg gg  4096 janv. 18 19:58 Debian_Uwsgi
drwxr-xr-x   2 gg gg  4096 janv. 18 19:58 Debian_Test
drwxr-xr-x   5 gg gg  4096 janv. 18 19:58 .
drwxrwxr-x 161 gg gg 86016 janv. 21 09:50 ..
gg@asus:~/docker_tracim$ docker build -t algoo/tracim:latest ./Debian_Uwsgi
Sending build context to Docker daemon  16.38kB
Step 1/13 : FROM debian:latest
 ---> 3e83c23dba6a
Step 2/13 : MAINTAINER contact@algoo.fr
 ---> Using cache
 ---> 0cc9708eab69
Step 3/13 : ENV LANG C.UTF-8
 ---> Using cache
 ---> dde3a17ee43e
Step 4/13 : ENV LANGUAGE C.UTF-8
 ---> Using cache
 ---> 93bdafe611b4
Step 5/13 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> 359ab5e02a6c
Step 6/13 : RUN DEBIAN_FRONTEND=noninteractive apt update -q     && DEBIAN_FRONTEND=noninteractive apt install -yq         git         realpath         redis-server         python3         python3-dev         python3-pip          python-lxml         build-essential         libxml2-dev         libxslt1-dev         zlib1g-dev         libjpeg-dev         libpq-dev         libreoffice         uwsgi         curl         uwsgi-plugin-python3         openjdk-8-jre-headless         libmagickwand-6.q16-3         nginx         inkscape         mysql-client         postgresql-client     && git clone http://github.com/tracim/tracim.git     && cd /tracim/     && git checkout master     && curl -sL https://deb.nodesource.com/setup_7.x | bash -     && DEBIAN_FRONTEND=noninteractive apt install -yq nodejs     && npm install     && npm run gulp-dev     && rm -rf /tracim/node_modules     && pip3 install -r install/requirements.txt     && pip3 install -r install/requirements.mysql.txt     && pip3 install -r install/requirements.postgresql.txt     && cd /tracim/tracim     && python3 setup.py develop     && python3 setup.py compile_catalog     && DEBIAN_FRONTEND=noninteractive apt purge -yq         curl         git         nodejs         python3-dev         build-essential         libxml2-dev         libxslt1-dev         zlib1g-dev         libjpeg-dev         libpq-dev     && DEBIAN_FRONTEND=noninteractive apt autoremove -yq     && DEBIAN_FRONTEND=noninteractive apt clean -q     && rm -rf /var/lib/apt/list/*
 ---> Running in d827aa503812

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

24 packages can be upgraded. Run 'apt list --upgradable' to see them.

WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.

E: Unable to locate package openjdk-8-jre-headless
E: Unable to locate package libmagickwand-6.q16-3
E: Couldn't find any package by regex 'libmagickwand-6.q16-3'
The command '/bin/sh -c DEBIAN_FRONTEND=noninteractive apt update -q     && DEBIAN_FRONTEND=noninteractive apt install -yq         git         realpath         redis-server         python3         python3-dev         python3-pip          python-lxml         build-essential         libxml2-dev         libxslt1-dev         zlib1g-dev         libjpeg-dev         libpq-dev         libreoffice         uwsgi         curl         uwsgi-plugin-python3         openjdk-8-jre-headless         libmagickwand-6.q16-3         nginx         inkscape         mysql-client         postgresql-client     && git clone http://github.com/tracim/tracim.git     && cd /tracim/     && git checkout master     && curl -sL https://deb.nodesource.com/setup_7.x | bash -     && DEBIAN_FRONTEND=noninteractive apt install -yq nodejs     && npm install     && npm run gulp-dev     && rm -rf /tracim/node_modules     && pip3 install -r install/requirements.txt     && pip3 install -r install/requirements.mysql.txt     && pip3 install -r install/requirements.postgresql.txt     && cd /tracim/tracim     && python3 setup.py develop     && python3 setup.py compile_catalog     && DEBIAN_FRONTEND=noninteractive apt purge -yq         curl         git         nodejs         python3-dev         build-essential         libxml2-dev         libxslt1-dev         zlib1g-dev         libjpeg-dev         libpq-dev     && DEBIAN_FRONTEND=noninteractive apt autoremove -yq     && DEBIAN_FRONTEND=noninteractive apt clean -q     && rm -rf /var/lib/apt/list/*' returned a non-zero code: 100
gg@asus:~/docker_tracim$ 
@buxx
Copy link
Contributor

buxx commented Jan 22, 2018

Bonjour,

Je viens juste de construire l'image sans rencontrer d'erreur (j'ai fait l'essai depuis une debian). Je vais faire l'essaie depuis une Ubuntu 17.10 bien que docker devrais gommer les différences ...

Juste pour info, quel version de docker est installé sur la machine concerné (docker --version) et quelle version de l'image debian (docker images | grep debian) ?

@buxx
Copy link
Contributor

buxx commented Jan 22, 2018

Peux-tu essayer de remplacer la ligne

FROM debian:latest

Par

FROM debian:9

Dans le fichier Debian_Uwsgi/Dockerfile et relancer le build ? Je pense que ton cache docker à une image debian 8 derrière le tag debian:latest. Quoi qu'il en soit je change la ligne dans le repo pour éviter le problème.

@k3ck3c
Copy link
Author

k3ck3c commented Jan 22, 2018

gg@asus:~$ docker version
Client:
Version: 17.06.2-ce
API version: 1.30
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 20:00:17 2017
OS/Arch: linux/amd64

Server:
Version: 17.06.2-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: cec0b72
Built: Tue Sep 5 19:59:11 2017
OS/Arch: linux/amd64
Experimental: false
gg@asus:$ docker images | grep debian
debian stretch-slim 9a091084b515 5 weeks ago 55.3MB
debian 9 da653cee0545 5 weeks ago 100MB
debian sid 3bf719402098 5 weeks ago 106MB
debian latest 3e83c23dba6a 8 months ago 124MB
debian 8 8cedef9d7368 10 months ago 123MB
debian 8.7 8cedef9d7368 10 months ago 123MB
debian jessie f50f9524513f 23 months ago 125MB
gg@asus:
$

@k3ck3c
Copy link
Author

k3ck3c commented Jan 22, 2018

Dans le fichier Debian_Uwsgi/Dockerfile et relancer le build

fait, build réussi, merci, et désolé pour le temps perdu

@buxx
Copy link
Contributor

buxx commented Jan 22, 2018

Pas de soucis ! Au contraire on à améliorer la stabilité du Dockerfile avec cette petite modification. Merci bonne continuation.

@buxx buxx closed this as completed Jan 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants