mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-20 04:59:25 +02:00
update jenkins
This commit is contained in:
parent
741b3969c3
commit
ca3373036e
@ -7,4 +7,30 @@ 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.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yml
|
||||
jenkins:
|
||||
image: jenkins:alpine
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "50000:50000"
|
||||
volumes:
|
||||
- ./data:/var/jenkins_home
|
||||
environment:
|
||||
- JAVA_OPTS=-Dhudson.footerURL=http://easypi.info/
|
||||
restart: always
|
||||
```
|
||||
|
||||
## up and running
|
||||
|
||||
```
|
||||
$ cd ~/fig/jenkins
|
||||
$ mkdir -p data
|
||||
$ sudo chown 1000 data
|
||||
$ docker-compose up -d
|
||||
$ docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
|
||||
$ firefox http://localhost:8080/
|
||||
```
|
||||
|
||||
[1]: http://jenkins-ci.org/
|
||||
|
@ -1,5 +1,10 @@
|
||||
jenkins:
|
||||
image: vimagick/jenkins
|
||||
image: jenkins:alpine
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "50000:50000"
|
||||
volumes:
|
||||
- ./data:/var/jenkins_home
|
||||
environment:
|
||||
- JAVA_OPTS=-Dhudson.footerURL=http://easypi.info/
|
||||
restart: always
|
||||
|
Loading…
x
Reference in New Issue
Block a user