mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
update jenkins
This commit is contained in:
parent
261e52be17
commit
1ec0161a18
@ -1,7 +1,7 @@
|
|||||||
jenkins
|
jenkins
|
||||||
=======
|
=======
|
||||||
|
|
||||||
![](https://badge.imagelayers.io/vimagick/jenkins:latest.svg)
|
![](https://badge.imagelayers.io/jenkinsci/jenkins:latest.svg)
|
||||||
|
|
||||||
In a nutshell, [Jenkins][1] is the leading open source automation server. Built
|
In a nutshell, [Jenkins][1] is the leading open source automation server. Built
|
||||||
with Java, it provides hundreds of plugins to support building, testing,
|
with Java, it provides hundreds of plugins to support building, testing,
|
||||||
@ -11,14 +11,12 @@ deploying and automation for virtually any project.
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
jenkins:
|
jenkins:
|
||||||
image: jenkins:alpine
|
image: jenkinsci/jenkins
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "50000:50000"
|
- "50000:50000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/jenkins_home
|
- ./data:/var/jenkins_home
|
||||||
environment:
|
|
||||||
- JAVA_OPTS=-Dhudson.footerURL=https://easypi.info/
|
|
||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -29,8 +27,11 @@ $ cd ~/fig/jenkins
|
|||||||
$ mkdir -p data
|
$ mkdir -p data
|
||||||
$ sudo chown 1000 data
|
$ sudo chown 1000 data
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
|
$ docker-compose exec jenkins bash
|
||||||
|
>>> cat secrets/initialAdminPassword
|
||||||
|
>>> ssh-keygen
|
||||||
|
>>> exit
|
||||||
$ docker-compose exec --user root jenkins apk add -U git
|
$ docker-compose exec --user root jenkins apk add -U git
|
||||||
$ docker-compose exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
|
|
||||||
$ firefox http://localhost:8080/
|
$ firefox http://localhost:8080/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
jenkins:
|
jenkins:
|
||||||
image: jenkins:alpine
|
image: jenkinsci/jenkins
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "50000:50000"
|
- "50000:50000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/jenkins_home
|
- ./data:/var/jenkins_home
|
||||||
environment:
|
|
||||||
- JAVA_OPTS=-Dhudson.footerURL=https://easypi.info/
|
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user