1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +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
```yml
```yaml
jenkins:
image: jenkinsci/jenkins
image: jenkins/jenkins:lts-alpine
ports:
- "8080:8080"
- "50000:50000"
volumes:
- ./data:/var/jenkins_home
environment:
- JAVA_OPTS=-Dhudson.footerURL=http://jenkins.easypi.pro
restart: always
```
## up and running
```
```bash
$ cd ~/fig/jenkins
$ mkdir -p data
$ sudo chown 1000 data
@ -38,4 +40,4 @@ $ docker-compose exec --user root jenkins apk add -U git
$ firefox http://localhost:8080/
```
[1]: http://jenkins-ci.org/
[1]: https://jenkins.io/index.html

View File

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