mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:36 +02:00
update jenkins
This commit is contained in:
parent
8dcd09202f
commit
9e81fb7eb0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user