commit | author | age
|
8e0d28
|
1 |
# Rundeck |
JK |
2 |
|
7ca149
|
3 |
This is a Docker image of Rundeck (http://rundeck.org) |
JK |
4 |
based on `debian:latest` |
|
5 |
|
|
6 |
## Usage |
|
7 |
|
|
8 |
```bash |
|
9 |
docker run -d --name=rundeck -p 4440:4440 jacekkow/rundeck |
|
10 |
``` |
|
11 |
|
|
12 |
Rundeck should be available at http://127.0.0.1:4440/ |
8e0d28
|
13 |
(user/password pairs: `user`/`user` and `admin`/`admin`) |
7ca149
|
14 |
|
JK |
15 |
By default it uses H2 database and Docker data volumes |
|
16 |
for storage persistence. |
|
17 |
|
|
18 |
You can update such installation by passing |
|
19 |
`--volumes-from` to `docker run`: |
|
20 |
|
|
21 |
```bash |
|
22 |
docker stop rundeck |
|
23 |
docker rename rundeck rundeck-old |
|
24 |
docker run -d --name=rundeck -p 4440:4440 \ |
|
25 |
--volumes-from rundeck-old \ |
|
26 |
jacekkow/rundeck |
|
27 |
docker rm -v rundeck-old |
|
28 |
``` |
|
29 |
|
|
30 |
### Local volumes |
|
31 |
|
|
32 |
You use local storage instead of data volumes: |
|
33 |
|
|
34 |
```bash |
|
35 |
docker run -d --name=rundeck -p 4440:4440 \ |
|
36 |
-v /srv/rundeck/etc:/etc/rundeck \ |
|
37 |
-v /srv/rundeck/data:/var/lib/rundeck/data \ |
|
38 |
-v /srv/rundeck/logs:/var/lib/rundeck/logs \ |
|
39 |
-v /srv/rundeck/rundeck:/var/rundeck \ |
|
40 |
-v /srv/rundeck/ssh:/var/lib/rundeck/.ssh \ |
|
41 |
jacekkow/rundeck |
|
42 |
``` |
|
43 |
|
|
44 |
### External database |
|
45 |
|
|
46 |
To increase performance, use MySQL instead of H2 database: |
|
47 |
|
|
48 |
```bash |
|
49 |
docker run -d --name=rundeck-db \ |
|
50 |
-e MYSQL_ROOT_PASSWORD=root-pass \ |
|
51 |
-e MYSQL_USER=rundeck \ |
|
52 |
-e MYSQL_PASSWORD=rundeck-pass \ |
|
53 |
-e MYSQL_DATABASE=rundeck \ |
|
54 |
mariadb |
|
55 |
docker run -d --name=rundeck -p 4440:4440 \ |
|
56 |
-v /srv/rundeck/etc:/etc/rundeck \ |
|
57 |
-v /srv/rundeck/data:/var/lib/rundeck/data \ |
|
58 |
-v /srv/rundeck/logs:/var/lib/rundeck/logs \ |
|
59 |
-v /srv/rundeck/rundeck:/var/rundeck \ |
|
60 |
-v /srv/rundeck/ssh:/var/lib/rundeck/.ssh \ |
|
61 |
--link rundeck-db:rundeck-db \ |
|
62 |
jacekkow/rundeck |
|
63 |
``` |
|
64 |
|
|
65 |
Then set the following options in |
8e0d28
|
66 |
`/srv/rundeck/etc/rundeck-config.properties` |
7ca149
|
67 |
|
JK |
68 |
``` |
|
69 |
dataSource.url = jdbc:mysql://rundeck-db/rundeck?autoReconnect=true |
|
70 |
dataSource.username = rundeck |
|
71 |
dataSource.password = rundeck-pass |
|
72 |
``` |
|
73 |
|
|
74 |
and restart the container: |
|
75 |
|
|
76 |
```bash |
|
77 |
docker restart rundeck |
|
78 |
``` |
|
79 |
|
|
80 |
## Configuration |
|
81 |
|
|
82 |
You can change Java system properties and JVM options by modifying |
8e0d28
|
83 |
`RDECK_JVM` property in `/etc/rundeck/profile` (which is persisted). |