Created
July 17, 2014 07:50
-
-
Save behboud/10e8717375744018db1a to your computer and use it in GitHub Desktop.
Glassfish 3 war deployment
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
# GlassFish 3.1.2 and spring boot guide jar to war deployment | |
# | |
# VERSION 0.1 | |
# DOCKER-VERSION 1.0.0 | |
FROM dockerfile/java | |
RUN apt-get update -qq | |
RUN apt-get install -qq maven git | |
WORKDIR /opt | |
#Downloading and unpacking GlassFish 312 | |
RUN wget download.java.net/glassfish/3.1.2.2/release/glassfish-3.1.2.2.zip | |
RUN unzip glassfish-3.1.2.2.zip | |
RUN rm -f glassfish-3.1.2.2.zip | |
ENV PATH /opt/glassfish3/glassfish/bin:$PATH | |
RUN git clone https://github.com/spring-guides/gs-convert-jar-to-war-maven | |
#Package the war file | |
WORKDIR /opt/gs-convert-jar-to-war-maven/complete | |
RUN mvn clean package | |
RUN cp target/gs-convert-jar-to-war-maven-0.1.0.war /opt/glassfish3/glassfish/domains/domain1/autodeploy | |
EXPOSE 8080 4848 8181 | |
WORKDIR /opt/glassfish3/glassfish/domains/domain1/logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment