Skip to content

Commit 60b49a6

Browse files
authored
Update README.md
1 parent 10c80a4 commit 60b49a6

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
## A Jenkins image for building and testing a Dockerized flask app
22

33
Usage:
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
526
docker-compose up
627
```
728
It 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.

0 commit comments

Comments
 (0)