denismakogon/gocv-alpine

4.0.1 runtime is not building properly

denismakogon opened this issue · 2 comments

Building in Docker Cloud's infrastructure...
Cloning into '.'...
KernelVersion: 4.4.0-1060-aws
Components: [{u'Version': u'18.03.1-ee-3', u'Name': u'Engine', u'Details': {u'KernelVersion': u'4.4.0-1060-aws', u'Os': u'linux', u'BuildTime': u'2018-08-30T18:42:30.000000000+00:00', u'ApiVersion': u'1.37', u'MinAPIVersion': u'1.12', u'GitCommit': u'b9a5c95', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.10.2'}}]
Arch: amd64
BuildTime: 2018-08-30T18:42:30.000000000+00:00
ApiVersion: 1.37
Platform: {u'Name': u''}
Version: 18.03.1-ee-3
MinAPIVersion: 1.12
GitCommit: b9a5c95
Os: linux
GoVersion: go1.10.2
Starting build of index.docker.io/denismakogon/gocv-alpine:ongoing-runtime...
Step 1/13 : FROM denismakogon/gocv-alpine:4.0.1-buildstage as build-stage
---> 845f4c875484
Step 2/13 : FROM denismakogon/ffmpeg-alpine:4.0
---> 27d2b28eeb14
Step 3/13 : LABEL maintainer="Denis Makogon. mail: lildee1991@gmail.com"
---> Running in 2ee1a28ba989
Removing intermediate container 2ee1a28ba989
---> 0039d0a40c4e
Step 4/13 : COPY --from=build-stage /usr/local/lib64 /usr/local/lib64
---> e0c5115a4fa7
Step 5/13 : COPY --from=build-stage /usr/local/lib64/pkgconfig/opencv4.pc /usr/local/lib64/pkgconfig/opencv4.pc
---> 2408801b30af
Step 6/13 : COPY --from=build-stage /usr/local/include/opencv4/opencv2 /usr/local/include/opencv4/opencv2
---> 118fd95d3ad9
Step 7/13 : ENV PKG="libstdc++ ca-certificates wget libjpeg-turbo libpng libwebp libwebp-dev tiff jasper-libs libavc1394 jasper-libs openblas libgphoto2 gstreamer gst-plugins-base "
---> Running in 780ec7667159
Removing intermediate container 780ec7667159
---> 3d0ce419d7c9
Step 8/13 : RUN apk update && apk upgrade && apk add --no-cache ${PKG} && wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/sgerrand.rsa.pub && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk && apk add --no-cache glibc-2.28-r0.apk && rm -fr /glibc-2.28-r0.apk && rm -rf /var/cache/apk/* && apk del wget
---> Running in 170ca929e6aa
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
v3.7.1-66-gfc22ab4fd3 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.1-69-ge575c90701 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
v3.9.0_rc4-16-gded0ade7d8 [http://nl.alpinelinux.org/alpine/edge/testing]
OK: 12557 distinct packages available
(1/2) Upgrading libcrypto1.0 (1.0.2p-r0 -> 1.0.2q-r0)
(2/2) Upgrading libssl1.0 (1.0.2p-r0 -> 1.0.2q-r0)
OK: 37 MiB in 46 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(1/39) Installing ca-certificates (20171114-r0)
(2/39) Installing libxau (1.0.8-r2)
(3/39) Installing libbsd (0.8.6-r1)
(4/39) Installing libxdmcp (1.1.2-r4)
(5/39) Installing libxcb (1.12-r1)
(6/39) Installing libx11 (1.6.6-r0)
(7/39) Installing libxext (1.3.3-r2)
(8/39) Installing libxv (1.0.11-r1)
(9/39) Installing alsa-lib (1.1.4.1-r2)
(10/39) Installing libxrender (0.9.10-r2)
(11/39) Installing pixman (0.34.0-r3)
(12/39) Installing cairo (1.14.10-r0)
(13/39) Installing cdparanoia-libs (10.2-r7)
(14/39) Installing libffi (3.2.1-r4)
(15/39) Installing libintl (0.19.8.1-r1)
(16/39) Installing libuuid (2.31.1-r0)
(17/39) Installing libblkid (2.31.1-r0)
(18/39) Installing libmount (2.31.1-r0)
(19/39) Installing pcre (8.41-r1)
(20/39) Installing glib (2.54.2-r0)
(21/39) Installing gstreamer (1.12.3-r0)
(22/39) Installing orc (0.4.27-r0)
(23/39) Installing libxft (2.3.2-r2)
(24/39) Installing graphite2 (1.3.10-r0)
(25/39) Installing harfbuzz (1.6.3-r0)
(26/39) Installing pango (1.40.14-r1)
(27/39) Installing libtheora (1.1.1-r13)
(28/39) Installing gst-plugins-base (1.12.3-r0)
(29/39) Installing libexif (0.6.21-r2)
(30/39) Installing libltdl (2.4.6-r4)
(31/39) Installing libusb (1.0.21-r0)
(32/39) Installing libgphoto2 (2.5.14-r0)
Executing libgphoto2-2.5.14-r0.pre-install
(33/39) Installing libwebp (0.6.0-r1)
(34/39) Installing libwebp-dev (0.6.0-r1)
(35/39) Installing libquadmath (6.4.0-r5)
(36/39) Installing libgfortran (6.4.0-r5)
(37/39) Installing openblas (0.2.19-r3)
(38/39) Installing tiff (4.0.10-r0)
(39/39) Installing wget (1.19.5-r0)
Executing busybox-1.27.2-r11.trigger
Executing ca-certificates-20171114-r0.trigger
Executing glib-2.54.2-r0.trigger
OK: 101 MiB in 85 packages
Removing intermediate container 170ca929e6aa
The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache ${PKG} && wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/sgerrand.rsa.pub && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk && apk add --no-cache glibc-2.28-r0.apk && rm -fr /glibc-2.28-r0.apk && rm -rf /var/cache/apk/* && apk del wget' returned a non-zero code: 8

@MasashiYokota can you please take a look? Can't release 4.0.1 on dockerhub, it's failing.

@denismakogon
I'm sorry. This is my careless mistake 🙇
This issue is caused by lacking sgerrand.rsa.pub of the latest glibc version.
So, I've modified runtime/Dockerfile to get sgerrand.rsa.pub from the previous glibc version.
And, I've created the PR #9 .
Please review it. Thank you.