You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,22 +12,29 @@ The aim for this project is for dockerized environments. Containerized tasks ask
12
12
13
13
## Usage
14
14
15
-
You will probably want your tasks to persist after container recreation. So create a volume.
15
+
You will probably want your tasks to persist after container recreation. So create a volume, and pass it as a mountpoint.
16
+
16
17
```sh
17
-
$ docker volume create cronmanager-data
18
+
docker volume create cronmanager-data
18
19
```
19
20
20
-
Now run the image. You will also want the job manager to access your other containers, to manager them, so pass the `/var/run/docker.sock` as a volume too.
21
+
You will also want the job manager to access your other containers, so it can manage them. For that, pass `/var/run/docker.sock` as a mountpoint.
22
+
23
+
This is a cronjob schedule related image, which is very time sensitive. So it is very important to get the your time settings right. Luckily this image supports the `TZ` environment var for setting the timezone, so no worries. Just make sure to get it right like in the example below.
24
+
25
+
The container exposes port `80` for using the web interface and the API, just forward that port to a port on your host. The web interface is located at `http://your.hostname:port/`. The API docs are below.
26
+
27
+
Now to run the image:
28
+
21
29
```sh
22
-
$ docker run \
23
-
-p 80:80 \
24
-
-v cronmanager-data:/usr/src/app/.node-persist \
25
-
-v /var/run/docker.sock:/var/run/docker.sock \
26
-
edmur/cronjob-manager
30
+
docker run \
31
+
-p 80:80 \
32
+
-v cronmanager-data:/usr/src/app/.node-persist \
33
+
-v /var/run/docker.sock:/var/run/docker.sock \
34
+
-e TZ="America/Sao_Paulo" \
35
+
edmur/cronjob-manager
27
36
```
28
37
29
-
The container exposes port `80` to the web interface and API, so forward that port to a port on your host.
30
-
31
38
## API
32
39
33
40
The web interface uses a REST API on the back-end that can also be called externally.
@@ -98,6 +105,9 @@ http://your-host/api/jobs/{id}
98
105
| commandType | String | The command to execute on the container. |
99
106
| active | Boolean | If the job is enabled or not. |
100
107
108
+
## To Do
109
+
- Add current container time to web interface
110
+
101
111
## License
102
112
103
113
This project is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).
0 commit comments