File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 11## A Jenkins image for building and testing a Dockerized flask app
22
33Usage:
4+ Before building this image you have to create
5+ a directory called: "secrets" and it should contain two files
6+ called jenkins-user and jenkins-pass, this files are used for storing temporaly jenkins initial user credentials.
7+
8+ Example:
9+ ``` bash
10+ ➜ flask-jenkins git:(master) ✗ tree secrets
11+ secrets
12+ ├── jenkins-pass
13+ └── jenkins-user
14+
15+ 0 directories, 2 files
16+ ➜ flask-jenkins git:(master) ✗ cat secrets/jenkins-user
17+ admin
18+ ➜ flask-jenkins git:(master) ✗ cat secrets/jenkins-pass
19+ admin
20+ ➜ flask-jenkins git:(master) ✗
21+ ```
22+
23+
24+ Having secret folder ready, run:
425``` bash
526docker-compose up
627```
728It will run a jenkins master instance and will bind it
8- to port 8080 for web access and 50000 for jenkins slave communication.
29+ to port 8080 for web access and 50000 for jenkins slave communication.
You can’t perform that action at this time.
0 commit comments