Closed brainstorm closed 7 years ago
The changes in the Dockerfile
are namely:
-RUN mkdir -p /tmp/downloads $OPT/bin $OPT/etc $OPT/lib $OPT/share
+RUN mkdir -p /tmp/downloads $OPT/bin $OPT/etc $OPT/lib $OPT/share && update-alternatives --set java /usr/lib/jvm/java-8-oracle/jre/bin/java
WORKDIR /tmp/downloads
Testing it doesn't break anything else right now...
Hi, @brainstorm Following up on https://github.com/ga4gh/dockstore/issues/469#issuecomment-259168229 I think there may be a miscommunication here.
Normally the Dockstore command-line runs on the host, which starts a Docker container ( quay.io/pancancer/pcawg-sanger-cgp-workflow in this case). The version of Java inside the container is not relevant since the command-line is running on the host.
In your case, it looks like you're starting the CGP container interactively and then running the Dockstore command-line inside it, which isn't really what we intended.
Argh, I see, thanks @denis-yuen for the clarifications... I'll then both install oracle-8 JDK and cwltool
in the host then, sorry for the confusion :/
No worries, you may also wish to take a look at https://dockstore.org/onboarding which notes the version of cwltool that we tested with.
While Java 1.8 seems installed in the docker image itself, the running version is Java 1.7. This situation turns out to be a problem when running dockstore.
The default java version in the $PATH when instantiating the container via
docker run -it quay.io/pancancer/pcawg-sanger-cgp-workflow /bin/bash
is:And while this repo's .travis.yml does run Oracle's JDK 1.8 when testing, it doesn't seem to be selected system-wide, yet it could be set in the
Dockerfile
easily viaupdate-alternatives
:May I send a pull request with those changes in mind?