dont remember

This commit is contained in:
Ryan Voots 2019-09-24 19:14:09 -04:00
parent 1b1ed90647
commit 45b8303465
2 changed files with 5 additions and 4 deletions

View file

@ -1,9 +1,10 @@
FROM jenkins/jenkins:lts
USER root
RUN echo 'deb-src http://ftp.us.debian.org/debian/ stable main non-free contrib' >> /etc/apt/sources.list
RUN echo 'deb-src http://ftp.us.debian.org/debian/ stretch main non-free contrib' >> /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install patch build-essential rsync
RUN apt-get -y build-dep sqlcipher libdbd-sqlite3-perl
RUN apt-get -y build-dep sqlcipher libdbd-sqlite3-perl debhelper
RUN apt-get -y install libvirt-clients libvirt0 libjna-java
COPY libvirt-java_0.5.1_all.deb /tmp/libvirt-java_0.5.1_all.deb
RUN dpkg -i /tmp/libvirt-java_0.5.1_all.deb

View file

@ -7,6 +7,6 @@ TAG=$(date "+%Y%m%d%H%M%S")
docker pull jenkins/jenkins:lts
docker build -t custom_jenkins:$TAG ~/workspace/jenkins_docker
docker stop jenkins
docker rm jenkins
docker stop jenkins || echo "No container to stop"
docker rm jenkins || echo "No container to remove"
docker run -d --restart=always -p 8080:8080 -v jenkins_home:/var/jenkins_home --name jenkins custom_jenkins:$TAG