ihcby / bika-lims-docker

Dockerfile for Bika LIMS project
0 stars 0 forks source link

Error when uncompressing Plone-4.3.7-UnifiedInstaller.tgz #2

Closed juangallostra closed 5 years ago

juangallostra commented 7 years ago

Getting the following error when trying to build the image:


Step 1/12 : FROM ubuntu:14.04
 ---> c69811d4e993
Step 2/12 : MAINTAINER Denis Karpenko <denis.karpenko@ihc.by>
 ---> Using cache
 ---> 7881ed80d7e4
Step 3/12 : RUN apt-get update && apt-get install -y     openssh-server     lsof     supervisor     build-essential     python-dev     git-core     libffi-dev     libpcre3-dev     gcc     autoconf     libtool     pkg-config     zlib1g-dev     libssl-dev     libexpat1-dev     libxslt1.1     gnuplot     libpcre3     libcairo2     libpango1.0-0     libgdk-pixbuf2.0-0     libxml2-dev     libxslt-dev
 ---> Using cache
 ---> 1d02c50673fd
Step 4/12 : ADD https://launchpad.net/plone/4.3/4.3.10/+download/Plone-4.3.10-UnifiedInstaller.tgz /opt/bika/
Downloading [==================================================>]  38.43MB/38.43MB
 ---> Using cache
 ---> 9270b318c6ea
Step 5/12 : RUN tar -xvf /opt/bika/Plone-4.3.10-UnifiedInstaller.tgz -C /opt/bika/
 ---> Running in 5190c777bbac
tar: /opt/bika/Plone-4.3.10-UnifiedInstaller.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
The command '/bin/sh -c tar -xvf /opt/bika/Plone-4.3.10-UnifiedInstaller.tgz -C /opt/bika/' returned a non-zero code: 2
juan@mendel:~/Mine/docker_tests/bika-lims-docker$ cd ..
juan@mendel:~/Mine/docker_tests$ cd bika-lims-as-is/
juan@mendel:~/Mine/docker_tests/bika-lims-as-is$ sudo docker build bika/lims:0.1
unable to prepare context: path "bika/lims:0.1" not found
juan@mendel:~/Mine/docker_tests/bika-lims-as-is$ sudo docker build bika/lims:0.1 .
"docker build" requires exactly 1 argument(s).
See 'docker build --help'.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
juan@mendel:~/Mine/docker_tests/bika-lims-as-is$ sudo docker build -t bika/lims:0.1 .
Sending build context to Docker daemon  7.168kB
Step 1/12 : FROM ubuntu:14.04
 ---> c69811d4e993
Step 2/12 : MAINTAINER Denis Karpenko <denis.karpenko@ihc.by>
 ---> Using cache
 ---> 7881ed80d7e4
Step 3/12 : RUN apt-get update && apt-get install -y     openssh-server     lsof     supervisor     build-essential     python-dev     git-core     libffi-dev     libpcre3-dev     gcc     autoconf     libtool     pkg-config     zlib1g-dev     libssl-dev     libexpat1-dev     libxslt1.1     gnuplot     libpcre3     libcairo2     libpango1.0-0     libgdk-pixbuf2.0-0     libxml2-dev     libxslt-dev
 ---> Using cache
 ---> 1d02c50673fd
Step 4/12 : ADD https://launchpad.net/plone/4.3/4.3.7/+download/Plone-4.3.7-UnifiedInstaller.tgz /opt/bika/
Downloading [==================================================>]  37.99MB/37.99MB
 ---> Using cache
 ---> 2c3bbefd5efc
Step 5/12 : RUN tar -xvf /opt/bika/Plone-4.3.7-UnifiedInstaller.tgz -C /opt/bika/
 ---> Running in 5527418aa7be
tar: /opt/bika/Plone-4.3.7-UnifiedInstaller.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
The command '/bin/sh -c tar -xvf /opt/bika/Plone-4.3.7-UnifiedInstaller.tgz -C /opt/bika/' returned a non-zero code: 2```
juangallostra commented 7 years ago

ADD has the ability to automatically unpack compressed files at the specified dest directory in the container's filesystem when the compression format is recognized (tar, gzip, bzip2, etc). This can be easily solved by deleting line 32 of the Dockerfile: RUN tar -xvf /opt/bika/Plone-4.3.7-UnifiedInstaller.tgz -C /opt/bika/

juangallostra commented 5 years ago

Closing due to lack of activity.