Initial commit
This commit is contained in:
commit
6d1b94a4eb
2 changed files with 18 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
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 apt-get -y update
|
||||
RUN apt-get -y install patch build-essential rsync
|
||||
RUN apt-get -y build-dep sqlcipher libdbd-sqlite3-perl
|
||||
USER jenkins
|
11
upgrade.sh
Executable file
11
upgrade.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
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 rm jenkins
|
||||
docker run -d --restart=always -p 8080:8080 -v jenkins_home:/var/jenkins_home --name jenkins custom_jenkins:$TAG
|
Loading…
Add table
Reference in a new issue