-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_base
44 lines (37 loc) · 1.55 KB
/
Dockerfile_base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Oracle Java 8 Dockerfile
#
# https://github.com/dockerfile/java
# https://github.com/dockerfile/java/tree/master/oracle-java8
#
FROM ubuntu:16.04
#install software property managemnet
RUN apt-get update && \
apt-get install -y software-properties-common python-software-properties unzip yum ant sed vim netcat-openbsd
# Install Java.
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
# Set environment variables and password for user 'admin'
ENV GLASSFISH_PKG=glassfish-4.1.1.zip \
GLASSFISH_URL=http://download.oracle.com/glassfish/4.1.1/release/glassfish-4.1.1.zip \
GLASSFISH_HOME=/glassfish4 \
MD5=4e7ce65489347960e9797d2161e0ada2 \
PATH=$PATH:/glassfish4/bin \
PASSWORD=password \
JAVA_HOME=/usr/lib/jvm/java-8-oracle
# Download and extract GlassFish
RUN wget --quiet --no-check-certificate $GLASSFISH_URL && \
echo "$MD5 *$GLASSFISH_PKG" | md5sum -c - && \
unzip -o $GLASSFISH_PKG && \
rm -f $GLASSFISH_PKG
ADD specjent2010_cd/setup.jar /tmp
RUN java -jar /tmp/setup.jar -i silent && \
rm /tmp/setup.jar
ADD spec.build.properties /tmp
ADD glassfish.build.properties /tmp
RUN mv /tmp/spec.build.properties /SPECjEnterprise2010-1.03/build.properties && \
mv /tmp/glassfish.build.properties /SPECjEnterprise2010-1.03/appservers/glassfish/build.properties