Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

243
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda