question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add OpenJDK:8 as a docker dependency

See original GitHub issue

Right after onboarding into dockstore while deploying CGP Sanger pipeline, I’ve been greeted by this:

Dockstore requires Java version 1.8 and above.

On (legacy) HPC clusters this is bound to be a problem… would you accept a pullrequest that pulls jre 8 as a default runtime instead of relying on the host’s (deprecated) preinstalled JAVA?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
denis-yuencommented, Nov 7, 2016

@brainstorm Hi, I think there are two parts to this answer

  1. Sounds good, an option to point at a version of Java not on the PATH makes sense to me.
  2. I have to add a caveat that we test with Oracle JDK 8. OpenJDK 8 will probably work (knock on wood), but it simply is not something we have tested with yet.
0reactions
denis-yuencommented, Nov 8, 2016

Hi, No, ironically, we haven’t actually run the dockstore command-line itself inside a Docker container.

Rather, the normal flow of things is on a particular host, Docker and Java 8 are installed, then cwltool. When you run the dockstore command-line, it does a bit of file provisioning, then calls cwltool, which starts a Docker container (CGP-Somatic-Docker) in your case, and then finishes up when the container stops. (We’ve run through Somatic Docker many times in this fashion)

These two pages of the tutorial describe this: https://dockstore.org/docs/getting-started-with-docker https://dockstore.org/docs/getting-started-with-cwl

Note that the dockstore command-line runs on the host and that’s where (Oracle) Java 1.8 is important. That’s why I thought you were either trying to a) try out the dockstore command-line with OpenJDK installed on the host when running on hosts that cannot install 1.8 or b) run the dockstore command-line in a docker container to work around this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create a custom Docker image with JDK8, Maven and ...
In our case we will leave it empty. So, that's how to define a very simple Dockerfile with java installed (open jdk8). Step...
Read more >
Best way to install java 8 using docker? - Stack Overflow
Add below setting to your DockerFile to install openjdk 8 in your docker container. # Install "software-properties-common" (for the ...
Read more >
Unable to install openJdk8 on the container #182 - GitHub
People report that they are able to install the openJDK when they use native Debian-8 (jessie); however, even though the docker container tells ......
Read more >
openjdk - Official Image | Docker Hub
This will add your current directory as a volume to the container, ... with any direct or indirect dependencies of the primary software...
Read more >
10 best practices to build Java containers with Docker - Snyk
Additionally, I can also add the Dockerfile for better remediation advice. java container testing with Snyk. Snyk found 58 security issues in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found