Created
October 27, 2015 13:55
-
-
Save slemeur/2a52bf673256beb99aae to your computer and use it in GitHub Desktop.
vaadin runtime
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
FROM codenvy/shellinabox | |
RUN sudo apt-get update && sudo apt-get install git -y | |
LABEL che:server:8080:ref=tomcat8 che:server:8080:protocol=http che:server:8000:ref=tomcat8-debug che:server:8000:protocol=http che:server:4200:ref=shellinabox che:server:4200:protocol=http | |
#Install JDK 8 | |
RUN wget \ | |
--no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
-qO- \ | |
"http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz" | sudo tar -zx -C /opt/ | |
ENV JAVA_HOME /opt/jdk1.8.0_51 | |
RUN echo "export JAVA_HOME=$JAVA_HOME" >> /home/user/.bashrc | |
ENV PATH $JAVA_HOME/bin:$PATH | |
RUN echo "export PATH=$PATH" >> /home/user/.bashrc | |
#Install Maven | |
RUN mkdir -p /home/user/maven3 && \ | |
wget -qO- "http://archive.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz" | tar -zx --strip-components=1 -C /home/user/maven3 | |
ENV M2_HOME /home/user/maven3 | |
RUN echo "export M2_HOME=$M2_HOME" >> /home/user/.bashrc | |
ENV PATH $M2_HOME/bin:$PATH | |
RUN echo "export PATH=$PATH" >> /home/user/.bashrc | |
CMD tailf /dev/null | |
CMD java -jar start.jar 2>&1 | |
#Install Jetty | |
RUN mkdir /home/user/jetty9 && \ | |
wget -qO- "http://ftp.acc.umu.se/mirror/eclipse.org/jetty/9.3.5.v20151012/dist/jetty-distribution-9.3.5.v20151012.tar.gz" | tar -zx --strip-components=1 -C /home/user/jetty9/ | |
EXPOSE 8080 8000 | |
ENV CODENVY_APP_PORT_8080_HTTP 8080 | |
WORKDIR /home/user/jetty9 | |
ADD $app$ /home/user/jetty9/webapps/ROOT.war | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment