Ontotext-AD / graphdb-docker

Docker images for GraphDB
80 stars 47 forks source link

make free command fails #24

Closed Volpym closed 6 months ago

Volpym commented 2 years ago

When I run make free Version=9.2.1 it starts building but then fails

`docker build --no-cache --pull --build-arg edition=free --build-arg version=9.2.1 -t ontotext/graphdb:9.2.1-free free-edition
Sending build context to Docker daemon  3.584kB
Step 1/12 : FROM adoptopenjdk/openjdk11:alpine
alpine: Pulling from adoptopenjdk/openjdk11
Digest: sha256:66f72af3a9f4a74820fbda9ddc334a1e23233e623c54e506a5917b7861718a8c
Status: Image is up to date for adoptopenjdk/openjdk11:alpine
 ---> 35f78a22b3a9
Step 2/12 : ARG version=9.1.1
 ---> Running in 83f13827e8ab
Removing intermediate container 83f13827e8ab
 ---> 693597377b1d
Step 3/12 : ARG edition=free
 ---> Running in 075d91e668e2
Removing intermediate container 075d91e668e2
 ---> bbb004f91a89
Step 4/12 : ENV GRAPHDB_PARENT_DIR=/opt/graphdb
 ---> Running in 71bc4a2e546f
Removing intermediate container 71bc4a2e546f
 ---> dd421c6f3b44
Step 5/12 : ENV GRAPHDB_HOME=${GRAPHDB_PARENT_DIR}/home
 ---> Running in 645d04a096ff
Removing intermediate container 645d04a096ff
 ---> c98361c80912
Step 6/12 : ENV GRAPHDB_INSTALL_DIR=${GRAPHDB_PARENT_DIR}/dist
 ---> Running in 411e1570a978
Removing intermediate container 411e1570a978
 ---> b348d3b3db0f
Step 7/12 : ADD graphdb-${edition}-${version}-dist.zip /tmp
 ---> 9368882f53d9
Step 8/12 : RUN apk add --no-cache bash util-linux procps net-tools busybox-extras wget less curl &&     mkdir -p ${GRAPHDB_PARENT_DIR} &&     cd ${GRAPHDB_PARENT_DIR} &&     unzip /tmp/graphdb-${edition}-${version}-dist.zip &&     rm /tmp/graphdb-${edition}-${version}-dist.zip &&     mv graphdb-${edition}-${version} dist &&     mkdir -p ${GRAPHDB_HOME}
 ---> Running in b8e8d9fb3aa0
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
(1/39) Installing ncurses-terminfo-base (6.2_p20210612-r0)
(2/39) Installing ncurses-libs (6.2_p20210612-r0)
(3/39) Installing readline (8.1.0-r0)
(4/39) Installing bash (5.1.4-r0)
Executing bash-5.1.4-r0.post-install
(5/39) Installing busybox-extras (1.33.1-r6)
Executing busybox-extras-1.33.1-r6.post-install
(6/39) Installing ca-certificates (20191127-r5)
(7/39) Installing brotli-libs (1.0.9-r5)
(8/39) Installing nghttp2-libs (1.43.0-r0)
(9/39) Installing libcurl (7.79.1-r0)
(10/39) Installing curl (7.79.1-r0)
(11/39) Installing less (581-r1)
(12/39) Installing mii-tool (1.60_git20140218-r2)
(13/39) Installing net-tools (1.60_git20140218-r2)
(14/39) Installing libintl (0.21-r0)
(15/39) Installing libproc (3.3.17-r0)
(16/39) Installing procps (3.3.17-r0)
(17/39) Installing libblkid (2.37.2-r0)
(18/39) Installing blkid (2.37.2-r0)
(19/39) Installing libcap-ng (0.8.2-r0)
(20/39) Installing setpriv (2.37.2-r0)
(21/39) Installing libmount (2.37.2-r0)
(22/39) Installing libsmartcols (2.37.2-r0)
(23/39) Installing findmnt (2.37.2-r0)
(24/39) Installing mcookie (2.37.2-r0)
(25/39) Installing hexdump (2.37.2-r0)
(26/39) Installing lsblk (2.37.2-r0)
(27/39) Installing libuuid (2.37.2-r0)
(28/39) Installing libfdisk (2.37.2-r0)
(29/39) Installing sfdisk (2.37.2-r0)
(30/39) Installing cfdisk (2.37.2-r0)
(31/39) Installing partx (2.37.2-r0)
(32/39) Installing flock (2.37.2-r0)
(33/39) Installing logger (2.37.2-r0)
(34/39) Installing uuidgen (2.37.2-r0)
(35/39) Installing libeconf (0.3.8-r1)
(36/39) Installing util-linux (2.37.2-r0)
(37/39) Installing libunistring (0.9.10-r1)
(38/39) Installing libidn2 (2.3.1-r0)
(39/39) Installing wget (1.21.1-r1)
Executing busybox-1.33.1-r6.trigger
Executing ca-certificates-20191127-r5.trigger
Executing glibc-bin-2.33-r0.trigger
/usr/glibc-compat/sbin/ldconfig: /usr/glibc-compat/lib/ld-linux-x86-64.so.2 is not a symbolic link

OK: 32 MiB in 56 packages
Archive:  /tmp/graphdb-free-9.2.1-dist.zip
unzip: short read
The command '/bin/sh -c apk add --no-cache bash util-linux procps net-tools busybox-extras wget less curl &&     mkdir -p ${GRAPHDB_PARENT_DIR} &&     cd ${GRAPHDB_PARENT_DIR} &&     unzip /tmp/graphdb-${edition}-${version}-dist.zip &&     rm /tmp/graphdb-${edition}-${version}-dist.zip &&     mv graphdb-${edition}-${version} dist &&     mkdir -p ${GRAPHDB_HOME}' returned a non-zero code: 1
make: *** [Makefile:4: free] Error 1
`
nikolaykolev commented 2 years ago

Hi, I'm not sure why this happens. It's something related to the alpine's unzip, not with the graphdb itself. Can you please try building other version of graphdb?

GreenfishK commented 2 years ago

It also fails for me. But also for the reason that there is no graphdb-free zip file to download. Only .deb, .rpm, .exe .dmg I also tried to convert the .deb file .zip and try to make it but it also failed at STEP 8

nikolaykolev commented 2 years ago

Once you sign up on Ontotext's website you'll receive links for all distributions including .zip

yaskoo commented 6 months ago

Starting GraphDB v10, there's a single artifact - the license determines the distribution or its absence. Dockerfile now downloads the appropriate file.