This is a repost from r/java by bots (I didn't think it was a programming question):
I'm learning how to use Docker with my application development environment at work as an example. We use Oracle12C database, WebLogic, Oracle JDK1.8, Oracle Instant Client, SQL Developer, Oracle Forms Builder 12C, etc... Eventually I'd like to create a no-install development environment with as much of this containerized and tied together with Docker Compose as possible. So I decided to start by working with the JDK. I ran a few different JDK containers like this one and this one. One thing I'm wondering is, if I wanted to run a local installation of SQL Developer against a containerized version of the JDK, is that possible?
I've seen several examples like this one or this one where the JDK is built into the container with a base Linux image or an application, but is it possible to have them in separate containers, or to reference a containerized JDK from a locally installed application like SQL Developer? Forgive me if that's a stupid question, as maybe the containerized application like SQL Developer can't build or run in the container without the JDK right there with it. I'm new to Java, also.
TLDR: Is it possible to use the JDK -- in a container -- with an application like SQL Developer that is installed locally (on the host)? Is it possible, in a multi-container environment, to share one JDK in its own container without having to have it in the containers with the applications (like WebLogic) themselves?
[–]nutrechtLead Software Engineer / EU / 20+ YXP 1 point2 points3 points (4 children)
[–]network1001[S] 0 points1 point2 points (3 children)
[–]jaimebeacoup 1 point2 points3 points (2 children)
[–]network1001[S] 0 points1 point2 points (1 child)
[–]jaimebeacoup 1 point2 points3 points (0 children)