1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/jenkins/README.md

38 lines
840 B
Markdown
Raw Normal View History

2016-01-30 17:35:25 +02:00
jenkins
=======
![](https://badge.imagelayers.io/vimagick/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,
deploying and automation for virtually any project.
2016-04-27 03:02:16 +02:00
## docker-compose.yml
```yml
jenkins:
image: jenkins:alpine
ports:
- "8080:8080"
- "50000:50000"
volumes:
- ./data:/var/jenkins_home
environment:
2016-05-03 08:05:55 +02:00
- JAVA_OPTS=-Dhudson.footerURL=https://easypi.info/
2016-04-27 03:02:16 +02:00
restart: always
```
## up and running
```
$ cd ~/fig/jenkins
$ mkdir -p data
$ sudo chown 1000 data
$ docker-compose up -d
2016-05-03 14:38:01 +02:00
$ docker-compose exec --user root jenkins apk add -U git
2016-04-27 03:02:16 +02:00
$ docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
$ firefox http://localhost:8080/
```
2016-01-30 17:35:25 +02:00
[1]: http://jenkins-ci.org/