add jenkins

This commit is contained in:
kev 2016-01-30 23:35:25 +08:00
parent 5a3b775086
commit afe777244a
5 changed files with 40 additions and 0 deletions

View File

@ -50,6 +50,7 @@ dockerfiles
- [x] hydra
- [x] influxdb
- [x] iptables
- [x] jenkins
- [x] joomla
- [x] mantisbt
- [x] monit

23
jenkins/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
#
# Dockerfile for jenkins
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
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"]

10
jenkins/README.md Normal file
View File

@ -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/

View File

@ -0,0 +1,5 @@
jenkins:
image: vimagick/jenkins
ports:
- "8080:8080"
restart: always

View File

@ -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