Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build failing #15

Open
laurikimmel opened this issue Jul 25, 2016 · 1 comment
Open

Docker build failing #15

laurikimmel opened this issue Jul 25, 2016 · 1 comment

Comments

@laurikimmel
Copy link
Contributor

Running on master docker build -t develar/java . fails with message ERROR: glibc-2.21-r2.apk: IO ERROR.

Looks to be issue with gclib version / package.

Discovered while upgrading to 8u102-b14.

Full log

docker build -t develar/java .
Sending build context to Docker daemon 16.26 MB
Step 1 : FROM alpine:3.3
 ---> d7a513a663c1
Step 2 : MAINTAINER Vladimir Krivosheev <[email protected]>
 ---> Using cache
 ---> 7e2761de73bc
Step 3 : ENV JAVA_VERSION_MAJOR 8 JAVA_VERSION_MINOR 102 JAVA_VERSION_BUILD 14 JAVA_PACKAGE server-jre JAVA_HOME /jre PATH ${PATH}:/jre/bin LANG C.UTF-8
 ---> Using cache
 ---> ada63e20546f
Step 4 : RUN apk add --update curl ca-certificates &&     cd /tmp &&     curl -o glibc-2.21-r2.apk         "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk" &&     curl -o glibc-bin-2.21-r2.apk         "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-bin-2.21-r2.apk" &&     apk add --allow-untrusted         glibc-2.21-r2.apk         glibc-bin-2.21-r2.apk &&     /usr/glibc/usr/bin/ldconfig /lib /usr/glibc/usr/lib &&     echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf &&     curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie"         "http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz"         | gunzip -c - | tar -xf - &&     apk del curl ca-certificates &&     mv jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR}/jre /jre &&     rm /jre/bin/jjs &&     rm /jre/bin/keytool &&     rm /jre/bin/orbd &&     rm /jre/bin/pack200 &&     rm /jre/bin/policytool &&     rm /jre/bin/rmid &&     rm /jre/bin/rmiregistry &&     rm /jre/bin/servertool &&     rm /jre/bin/tnameserv &&     rm /jre/bin/unpack200 &&     rm /jre/lib/ext/nashorn.jar &&     rm /jre/lib/jfr.jar &&     rm -rf /jre/lib/jfr &&     rm -rf /jre/lib/oblique-fonts &&     rm -rf /tmp/* /var/cache/apk/*
 ---> Running in b36ec8fae092
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
(1/4) Installing openssl (1.0.2h-r1)
(2/4) Installing ca-certificates (20160104-r2)
(3/4) Installing libssh2 (1.6.0-r1)
(4/4) Installing curl (7.49.1-r0)
Executing busybox-1.24.1-r7.trigger
Executing ca-certificates-20160104-r2.trigger
OK: 7 MiB in 15 packages
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    48  100    48    0     0     74      0 --:--:-- --:--:-- --:--:--    82
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    48  100    48    0     0     79      0 --:--:-- --:--:-- --:--:--    81
ERROR: glibc-2.21-r2.apk: IO ERROR
The command '/bin/sh -c apk add --update curl ca-certificates &&     cd /tmp &&     curl -o glibc-2.21-r2.apk         "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-2.21-r2.apk" &&     curl -o glibc-bin-2.21-r2.apk         "https://circle-artifacts.com/gh/andyshinn/alpine-pkg-glibc/6/artifacts/0/home/ubuntu/alpine-pkg-glibc/packages/x86_64/glibc-bin-2.21-r2.apk" &&     apk add --allow-untrusted         glibc-2.21-r2.apk         glibc-bin-2.21-r2.apk &&     /usr/glibc/usr/bin/ldconfig /lib /usr/glibc/usr/lib &&     echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf &&     curl -jksSLH "Cookie: oraclelicense=accept-securebackup-cookie"         "http://download.oracle.com/otn-pub/java/jdk/${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-b${JAVA_VERSION_BUILD}/${JAVA_PACKAGE}-${JAVA_VERSION_MAJOR}u${JAVA_VERSION_MINOR}-linux-x64.tar.gz"         | gunzip -c - | tar -xf - &&     apk del curl ca-certificates &&     mv jdk1.${JAVA_VERSION_MAJOR}.0_${JAVA_VERSION_MINOR}/jre /jre &&     rm /jre/bin/jjs &&     rm /jre/bin/keytool &&     rm /jre/bin/orbd &&     rm /jre/bin/pack200 &&     rm /jre/bin/policytool &&     rm /jre/bin/rmid &&     rm /jre/bin/rmiregistry &&     rm /jre/bin/servertool &&     rm /jre/bin/tnameserv &&     rm /jre/bin/unpack200 &&     rm /jre/lib/ext/nashorn.jar &&     rm /jre/lib/jfr.jar &&     rm -rf /jre/lib/jfr &&     rm -rf /jre/lib/oblique-fonts &&     rm -rf /tmp/* /var/cache/apk/*' returned a non-zero code: 255
@milikicn
Copy link

milikicn commented Jul 7, 2018

Same error here. Is this build working for anyone? I am on OS X 10.13.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@milikicn @laurikimmel and others