mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-03-08 05:31:58 +00:00
Fixing Dockerfile to be more flexible (using CMD instead of ENTRYPOINT) and adding docker badges.
This commit is contained in:
@@ -4,4 +4,4 @@ MAINTAINER Mitsuo Takaki <mitsuotakaki@gmail.com>
|
|||||||
COPY config.yml /usr/src/app/config/
|
COPY config.yml /usr/src/app/config/
|
||||||
VOLUME /usr/src/app/config/
|
VOLUME /usr/src/app/config/
|
||||||
|
|
||||||
ENTRYPOINT ["python", "cachet_url_monitor/scheduler.py", "config/config.yml"]
|
CMD ["python", "cachet_url_monitor/scheduler.py", "config/config.yml"]
|
||||||
|
|||||||
13
README.md
13
README.md
@@ -2,6 +2,9 @@
|
|||||||

|

|
||||||
[](https://coveralls.io/github/mtakaki/cachet-url-monitor?branch=master)
|
[](https://coveralls.io/github/mtakaki/cachet-url-monitor?branch=master)
|
||||||
[](https://www.codacy.com/app/mitsuotakaki/cachet-url-monitor?utm_source=github.com&utm_medium=referral&utm_content=mtakaki/cachet-url-monitor&utm_campaign=Badge_Grade)
|
[](https://www.codacy.com/app/mitsuotakaki/cachet-url-monitor?utm_source=github.com&utm_medium=referral&utm_content=mtakaki/cachet-url-monitor&utm_campaign=Badge_Grade)
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
cachet-url-monitor
|
cachet-url-monitor
|
||||||
========================
|
========================
|
||||||
@@ -78,6 +81,12 @@ $ docker-compose up
|
|||||||
Or pulling directly from [dockerhub](https://hub.docker.com/r/mtakaki/cachet-url-monitor/). You will need to create your own custom `config.yml` file and put it in a folder (`my_config`):
|
Or pulling directly from [dockerhub](https://hub.docker.com/r/mtakaki/cachet-url-monitor/). You will need to create your own custom `config.yml` file and put it in a folder (`my_config`):
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker pull mtakaki/cachet-url-monitor:0.1
|
$ docker pull mtakaki/cachet-url-monitor:0.2
|
||||||
$ docker run --rm -it -v my_config/:/usr/src/app/config/ mtakaki/cachet-url-monitor:0.1
|
$ docker run --rm -it -v my_config/:/usr/src/app/config/ mtakaki/cachet-url-monitor:0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you're going to use a file with a name other than `config.yml`, you will need to set a custom command, like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker run --rm -it -v my_config/:/usr/src/app/config/ mtakaki/cachet-url-monitor:0.2 python cachet_url_monitor/scheduler.py config/my_config.yml
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user