Skip to content

Commit

Permalink
Dockerfile for jpos/ubuntu_vivid_jdk8
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Jun 15, 2015
1 parent 6a4f430 commit 7276653
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
37 changes: 37 additions & 0 deletions dockerfiles/ubuntu_vivid_jdk8/Dockerfile
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"]

12 changes: 12 additions & 0 deletions dockerfiles/ubuntu_vivid_jdk8/README.md
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
```

0 comments on commit 7276653

Please sign in to comment.