Home > other >  The docker + Jenkins dockerfile way to reality.
The docker + Jenkins dockerfile way to reality.

Time:09-20

# pull down centos image
The FROM centos
The MAINTAINER [email protected]

# copy JDK and tomcat into image
# download here how to implement the Jenkins
The ADD./apache tomcat - - 7.0.70. Tar. Gz/root
The ADD./JDK - 7 u80 - Linux - x64. Tar. Gz/root
# here how to implement the installation run Jenkins
# set the environment variable
ENV JAVA_HOME/root/jdk1.7.0 _80
ENV PATH $JAVA_HOME/bin: $PATH
# define entry point which will be run first when the container starts up
ENTRYPOINT/root/apache tomcat - 7.0.70/bin/startup. Sh & amp; & Tail -f/root/apache tomcat - 7.0.70/logs/catalina out


This is my own writing docker


Or, have a great god, your own file, I take ~ ~ '
  • Related