Public Repository

Last pushed: 2 years ago
Short Description
Ubuntu 14.04.2 LTS / Oracle Java 8 (1.8.0_66) from PPA with `java` user
Full Description

Ubuntu 14.04.2 LTS / Oracle Java 8 (1.8.0_66) from PPA with java user

Dockerfile

FROM keks/java-base
MAINTAINER Jan M. <keks@keksfabrik.eu>

RUN adduser --system --group --gecos "java user" java
USER java
VOLUME ["/deploy"]
ENTRYPOINT ["java"]

Should be self-explanatory: a user is added (with a low userid like it would be generated when installing a service - makes mounting folders easier since the user and group will be identical across all my docker images and i only have to chown messagebus:fuse), the /deploy folder is generated and the entrypoint is set to java so a call like:

docker run -d -i -t --name myservice -v /local/folder/with/jars:/deploy keks/java -jar /deploy/my.jar

will just run your jar

Docker Pull Command
Owner
keks