Closed millergarym closed 4 years ago
I am not sure the error you are encountering is due to network timeout. It is probably due to a build error (I see a Java build issue in your log, but the reason is not in the part you posted). We know that GreatSPN should build on Fedora and some Ubuntu, maybe you are using a Linux with some difference in the library directories? Anyway, we designed the docker file to use a build script exactly to avoid having to maintain both a script and a dockerfile separately, with the same content. Therefore, I am not willing to merge an exploded dockerfile.
I have looked instead at the /usr/lib64 dependencies you have put in the diff Makefile. I have pushed a change in the Makefile that should fix the build process for you. Could you please confirm if it builds now?
@amparore thanks for the changes, they fixed the build issues.
we designed the docker file to use a build script exactly to avoid having to maintain both a script and a dockerfile separately, with the same content.
I might be missing something. As I see it the download.sh
script complicates things.
With the fedora.docker file the build instruction become
docker build -t gpsn -f docker/fedora.dockerfile .
The built artifacts can be packaged inside the container and released, or the container can be pushed to docker hub.
Push a docker image to https://hub.docker.com/repository/docker/millergarym/greatspn
Quick way to get GreatSPN running (at least from a Linux machine with X on display :0)
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist :0 | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -ti --rm \
-v $XSOCK:$XSOCK \
-v $XAUTH:$XAUTH \
-e XAUTHORITY=$XAUTH \
-e HOME=/usr/local/GreatSPN/models/usermodels \
-e U_USER=$USER \
-e U_UID=`id -u` \
-e U_GID=`id -g` \
-v `pwd`:/usr/local/GreatSPN/models/usermodels \
-w /usr/local/GreatSPN/models//usermodels \
millergarym/greatspn
The docker build is failing. Some of the failures encountered are network time-outs. Once past the transient failures there is a persistent failure, output included below.
I'll have a go at writing an idiomatic dockerfile by exploding download.sh.
Source version:
69dbebb341801dc0f3721e475d7b77c1f049adb5 Thu Nov/07 21:18:37 (HEAD -> master, origin/master, origin/HEAD) fix in docker script [Amparore]