-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile for jpos/ubuntu_vivid_jdk8
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Based on Oracle Java 8 Dockerfile | ||
# https://github.com/dockerfile/java | ||
# https://github.com/dockerfile/java/tree/master/oracle-java8 | ||
# | ||
|
||
# Image name: ubuntu_vivid_java8 | ||
|
||
# Pull base image, Ubuntu Vivid Vervet | ||
FROM ubuntu:15.04 | ||
MAINTAINER Alejandro Revilla "[email protected]" | ||
# RUN groupadd -r postgres && useradd -r -g postgres postgres | ||
|
||
RUN \ | ||
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu vivid main" > /etc/apt/sources.list.d/webupd8team-java.list && \ | ||
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu vivid main" >> /etc/apt/sources.list.d/webupd8team-java.list && \ | ||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 && \ | ||
apt-get update && \ | ||
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | ||
apt-get install -y oracle-java8-installer && \ | ||
apt-get dist-upgrade && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /var/cache/oracle-jdk8-installer && \ | ||
apt-get clean | ||
|
||
# Define working directory. | ||
# WORKDIR /data | ||
|
||
# Define commonly used JAVA_HOME variable | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle | ||
ENV LANG C.UTF-8 | ||
|
||
# USER jpos | ||
# EXPOSE 8583 | ||
# Define default command. | ||
CMD ["bash"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Build | ||
|
||
``` | ||
docker build -t="jpos/ubuntu_vivid_jdk8" . | ||
``` | ||
|
||
# Run | ||
|
||
``` | ||
docker run -t -i jpos/ubuntu_vivid_jdk8 /bin/bash | ||
``` | ||
|