Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

jenkins-for-docker

A Docker image for Jenkins with Nginx in front of it providing support for HTTPS. Also supports connecting to OpenVPN server.

Run the container

CONTAINER="jenkins-data" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v /jenkins \
  --entrypoint /bin/echo \
  dockerizedrupal/jenkins:2.0.3 "Data-only container for Jenkins."

CONTAINER="jenkins" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -p 80:80 \
  -p 443:443 \
  --volumes-from jenkins-data \
  --cap-add NET_ADMIN \
  -e SERVER_NAME="localhost" \
  -e TIMEZONE="Etc/UTC" \
  -e TIMEOUT="300" \
  -e PROTOCOLS="https,http" \
  -e OPENVPN="Off" \
  -e OPENVPN_DEVICE="TAP" \
  -e OPENVPN_HOST="" \
  -e OPENVPN_PORT="1194" \
  -e OPENVPN_PROTO="udp" \
  -e OPENVPN_USERNAME="" \
  -e OPENVPN_PASSWORD="" \
  -e OPENVPN_CA_CERTIFICATE="" \
  -d \
  dockerizedrupal/jenkins:2.0.3

Build the image

TMP="$(mktemp -d)" \
  && git clone https://github.com/dockerizedrupal/jenkins-for-docker.git "${TMP}" \
  && cd "${TMP}" \
  && git checkout 2.0.3 \
  && sudo docker build -t dockerizedrupal/jenkins:2.0.3 . \
  && cd -

Back up Jenkins data

sudo tools/jenkinsdata backup

Restore Jenkins data from a backup

sudo tools/jenkinsdata restore

License

MIT