-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
35 lines (23 loc) · 1.3 KB
/
Dockerfile
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
FROM ubuntu
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV GLASSFISH_HOME /opt/glassfish4
ENV PATH $PATH:$JAVA_HOME/bin:$GLASSFISH_HOME/bin
RUN apt-get update && \
apt-get install software-properties-common --yes && \
add-apt-repository ppa:webupd8team/java && \
apt-get update && \
apt-get install -y curl unzip zip inotify-tools
RUN echo "===> install Java" && \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes oracle-java8-installer oracle-java8-set-default
RUN curl -L -o /tmp/glassfish-4.1.zip http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip && \
unzip /tmp/glassfish-4.1.zip -d /opt && \
rm -f /tmp/glassfish-4.1.zip
RUN mkdir /opt/glassfish4/x_deploy
COPY ./opw/target/xconfig/* /opt/glassfish4/glassfish/domains/domain1/config/
COPY ./opw/target/xlib/* /opt/glassfish4/glassfish/domains/domain1/lib/
COPY ./opw/target/opw.war /opt/glassfish4/x_deploy/
COPY ./docker/entrypoint.sh /
WORKDIR /opt/glassfish4/x_deploy
RUN chmod +x /entrypoint.sh