Add libvirt stuff

This commit is contained in:
Ryan Voots 2018-05-03 16:29:23 -04:00
parent 6d1b94a4eb
commit 1b1ed90647
3 changed files with 5 additions and 1 deletions

View file

@ -4,4 +4,7 @@ RUN echo 'deb-src http://ftp.us.debian.org/debian/ stable main non-free contrib'
RUN apt-get -y update
RUN apt-get -y install patch build-essential rsync
RUN apt-get -y build-dep sqlcipher libdbd-sqlite3-perl
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
USER jenkins

BIN
libvirt-java_0.5.1_all.deb Normal file

Binary file not shown.

View file

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