Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
Docker and Java 9 modules

Are there Docker images for specific Java 9 modules?

I guess there should appear base images for FROM java:9, but how would optional modules come, if my base would be from minimal core Java 9 module.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Here is one example:

 FROM java:9
 COPY /target/myswarmproject-swarm.jar /home/myswarm-swarm.jar
 EXPOSE 8080
 CMD java -jar /home/myswarmproject-swarm.jar

Previous dockerfile example is for wildfly swarm project which is deployed as .jar into the container.

about 4 years ago · Santiago Trujillo Report

0

Here is my implementation, also found at adenix/java:9u181:

FROM ubuntu:16.04

RUN \
  apt update && \
  apt install -y curl && \
  curl -jkL -H "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/9+181/jdk-9_linux-x64_bin.tar.gz -o jdk-9_linux-x64_bin.tar.gz && \
  apt remove -y curl && \
  apt clean && \
  apt -y autoremove && \
  rm -rf /var/lib/apt/lists/* && \
  tar xvzf jdk-9_linux-x64_bin.tar.gz -C /opt/ && \
  rm -rf jdk-9_linux-x64_bin.tar.gz && \
  update-alternatives --install /usr/bin/java java /opt/jdk-9/bin/java 100 && \
  update-alternatives --install /usr/bin/javac javac /opt/jdk-9/bin/javac 100 && \
  update-alternatives --install /usr/bin/jshell jshell /opt/jdk-9/bin/jshell 100

CMD ["jshell"]

You could implement this by either duplicating this Docker file or using FROM adenix/java:9u181 in your Dockerfile.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!