looker / docker_looker

MIT License
30 stars 20 forks source link

Docker build fails with "gzip: stdin: not in gzip format" #4

Open mvcatsifma opened 5 years ago

mvcatsifma commented 5 years ago

Environment Mac OSX 10.13.6 Docker Engine 18.09.2

Steps to reproduce

Follow the Building the Docker image instructions in the readme:

git clone git@github.com:looker/docker_looker.git
cd docker_looker
docker build -t looker:latest .

Expected behaviour

Docker image is build

Actual behaviour

Build fails while downloading the JDK from Oracle's homepage. Error message:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem   --header "Cookie: oraclelicense=accept-securebackup-cookie;"   http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz   | tar xz -C /tmp &&   mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" &&   apt-get autoclean && apt-get --purge -y autoremove &&   rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 2

Cause

Possibly caused by Oracle requiring a login before downloading the JDK from it's site.

Possible solution

Use OpenJDK instead of Oracle JDK.

saraleon1 commented 5 years ago

+1 I am also seeing this issue

power-craig commented 4 years ago

+1

BalkrishanAggarwal commented 4 years ago

Anyone able to resolve this issue ?