Skip to content

Commit

Permalink
New base image (ubuntu:latest + jdk)
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Feb 15, 2018
1 parent 519942d commit aa4c66f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dockerfiles/ubuntu_jdk8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Based on Oracle Java 8 Dockerfile
# https://github.com/dockerfile/java
# https://github.com/dockerfile/java/tree/master/oracle-java8
#

FROM ubuntu:latest
MAINTAINER Alejandro Revilla "[email protected]"
# RUN groupadd -r postgres && useradd -r -g postgres postgres

RUN \
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/webupd8team-java.list && \
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty 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 -y && \
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"]

18 changes: 18 additions & 0 deletions dockerfiles/ubuntu_jdk8/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Build

```
docker build -t="jpos/ubuntu_jdk8" .
```

# Run

```
docker run -t -i jpos/ubuntu_jdk8 /bin/bash
```

# Push

```
docker push jpos/ubuntu_jdk8
```

0 comments on commit aa4c66f

Please sign in to comment.