From afe777244a6c98dd11f82548e72e3390efabdb60 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 30 Jan 2016 23:35:25 +0800 Subject: [PATCH] add jenkins --- README.md | 1 + jenkins/Dockerfile | 23 +++++++++++++++++++++++ jenkins/README.md | 10 ++++++++++ jenkins/docker-compose.yml | 5 +++++ swarm-arm/README.md | 1 + 5 files changed, 40 insertions(+) create mode 100644 jenkins/Dockerfile create mode 100644 jenkins/README.md create mode 100644 jenkins/docker-compose.yml diff --git a/README.md b/README.md index 08c7c88..73965fc 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ dockerfiles - [x] hydra - [x] influxdb - [x] iptables +- [x] jenkins - [x] joomla - [x] mantisbt - [x] monit diff --git a/jenkins/Dockerfile b/jenkins/Dockerfile new file mode 100644 index 0000000..0ea9de8 --- /dev/null +++ b/jenkins/Dockerfile @@ -0,0 +1,23 @@ +# +# Dockerfile for jenkins +# + +FROM alpine +MAINTAINER kev + +ENV JENKINS_HOME /var/jenkins_home + +RUN set -xe \ + && apk add -U openjdk8 ttf-dejavu \ + && adduser -h $JENKINS_HOME -u 1000 -s /bin/sh -D jenkins \ + && wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war -O /jenkins.war \ + && rm -rf /var/cache/apk/* + +VOLUME $JENKINS_HOME +WORKDIR $JENKINS_HOME + +USER jenkins + +EXPOSE 8080 + +CMD ["java", "-jar", "/jenkins.war"] diff --git a/jenkins/README.md b/jenkins/README.md new file mode 100644 index 0000000..6043dd1 --- /dev/null +++ b/jenkins/README.md @@ -0,0 +1,10 @@ +jenkins +======= + +![](https://badge.imagelayers.io/vimagick/jenkins:latest.svg) + +In a nutshell, [Jenkins][1] is the leading open source automation server. Built +with Java, it provides hundreds of plugins to support building, testing, +deploying and automation for virtually any project. + +[1]: http://jenkins-ci.org/ diff --git a/jenkins/docker-compose.yml b/jenkins/docker-compose.yml new file mode 100644 index 0000000..e6b3e0a --- /dev/null +++ b/jenkins/docker-compose.yml @@ -0,0 +1,5 @@ +jenkins: + image: vimagick/jenkins + ports: + - "8080:8080" + restart: always diff --git a/swarm-arm/README.md b/swarm-arm/README.md index e32ef97..3b0343f 100644 --- a/swarm-arm/README.md +++ b/swarm-arm/README.md @@ -22,6 +22,7 @@ $ docker run -d --restart always vimagick/swarm-arm join --addr=192.168.1.204:23 $ docker run -d --restart always vimagick/swarm-arm join --addr=192.168.1.204:2375 token://f9723931d522b39b756bb0b24a7cfc04 # on master +$ curl https://discovery.hub.docker.com/v1/clusters/f9723931d522b39b756bb0b24a7cfc04 $ docker run --rm vimagick/swarm-arm list token://f9723931d522b39b756bb0b24a7cfc04 $ docker run -d --restart always -p 2375:2375 vimagick/swarm-arm manage token://f9723931d522b39b756bb0b24a7cfc04 $ export DOCKER_HOST=tcp://127.0.0.1:2375