1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-27 12:22:42 +02:00

update jenkins

This commit is contained in:
kev 2017-09-12 15:54:13 +08:00
parent 8dcd09202f
commit 9e81fb7eb0
2 changed files with 9 additions and 5 deletions

View File

@ -9,20 +9,22 @@ deploying and automation for virtually any project.
## docker-compose.yml ## docker-compose.yml
```yml ```yaml
jenkins: jenkins:
image: jenkinsci/jenkins image: jenkins/jenkins:lts-alpine
ports: ports:
- "8080:8080" - "8080:8080"
- "50000:50000" - "50000:50000"
volumes: volumes:
- ./data:/var/jenkins_home - ./data:/var/jenkins_home
environment:
- JAVA_OPTS=-Dhudson.footerURL=http://jenkins.easypi.pro
restart: always restart: always
``` ```
## up and running ## up and running
``` ```bash
$ cd ~/fig/jenkins $ cd ~/fig/jenkins
$ mkdir -p data $ mkdir -p data
$ sudo chown 1000 data $ sudo chown 1000 data
@ -38,4 +40,4 @@ $ docker-compose exec --user root jenkins apk add -U git
$ firefox http://localhost:8080/ $ firefox http://localhost:8080/
``` ```
[1]: http://jenkins-ci.org/ [1]: https://jenkins.io/index.html

View File

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