1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00

update jenkins

This commit is contained in:
kev 2016-06-04 00:25:43 +08:00
parent 261e52be17
commit 1ec0161a18
2 changed files with 7 additions and 8 deletions

View File

@ -1,7 +1,7 @@
jenkins
=======
![](https://badge.imagelayers.io/vimagick/jenkins:latest.svg)
![](https://badge.imagelayers.io/jenkinsci/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,
@ -11,14 +11,12 @@ deploying and automation for virtually any project.
```yml
jenkins:
image: jenkins:alpine
image: jenkinsci/jenkins
ports:
- "8080:8080"
- "50000:50000"
volumes:
- ./data:/var/jenkins_home
environment:
- JAVA_OPTS=-Dhudson.footerURL=https://easypi.info/
restart: always
```
@ -29,8 +27,11 @@ $ cd ~/fig/jenkins
$ mkdir -p data
$ sudo chown 1000 data
$ docker-compose up -d
$ docker-compose exec jenkins bash
>>> cat secrets/initialAdminPassword
>>> ssh-keygen
>>> exit
$ docker-compose exec --user root jenkins apk add -U git
$ docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
$ firefox http://localhost:8080/
```

View File

@ -1,10 +1,8 @@
jenkins:
image: jenkins:alpine
image: jenkinsci/jenkins
ports:
- "8080:8080"
- "50000:50000"
volumes:
- ./data:/var/jenkins_home
environment:
- JAVA_OPTS=-Dhudson.footerURL=https://easypi.info/
restart: always