1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/jenkins/README.md

42 lines
830 B
Markdown
Raw Normal View History

2016-01-30 15:35:25 +00:00
jenkins
=======
2016-06-03 16:25:43 +00:00
![](https://badge.imagelayers.io/jenkinsci/jenkins:latest.svg)
2016-01-30 15:35:25 +00:00
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 01:02:16 +00:00
## docker-compose.yml
```yml
jenkins:
2016-06-03 16:25:43 +00:00
image: jenkinsci/jenkins
2016-04-27 01:02:16 +00:00
ports:
- "8080:8080"
- "50000:50000"
volumes:
- ./data:/var/jenkins_home
restart: always
```
## up and running
```
$ cd ~/fig/jenkins
$ mkdir -p data
$ sudo chown 1000 data
$ docker-compose up -d
2016-06-03 16:25:43 +00:00
$ docker-compose exec jenkins bash
2016-06-11 00:15:37 +00:00
>>> cat ~/secrets/initialAdminPassword
******
2016-06-03 16:25:43 +00:00
>>> ssh-keygen
2016-06-11 00:15:37 +00:00
>>> cat ~/.ssh/id_rsa.pub
......
2016-06-03 16:25:43 +00:00
>>> exit
2016-05-03 12:38:01 +00:00
$ docker-compose exec --user root jenkins apk add -U git
2016-04-27 01:02:16 +00:00
$ firefox http://localhost:8080/
```
2016-01-30 15:35:25 +00:00
[1]: http://jenkins-ci.org/