From ea4cb2769e71f14063518aa0825c03e8be750198 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 4 Jan 2018 11:53:51 +0100 Subject: [PATCH 1/2] #38 Add Dockerfile --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..988102e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.5-slim-jessie + +LABEL maintainer="labs@idealista.com" + +EXPOSE 8089 + +RUN pip install prom2teams +COPY config.ini /opt/prom2teams/config.ini + +ENTRYPOINT ["prom2teams", "--configpath", "/opt/prom2teams/config.ini"] From 71dd271223a13c31746d9143bb44b48682644495 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 4 Jan 2018 11:54:24 +0100 Subject: [PATCH 2/2] Fix error in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 214dd77..cd1de80 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ $ pip3 install prom2teams ```bash # To start the server (a config file path must be provided, log file path, log level and Jinja2 template path are optional arguments): -$ prom2teams start --configpath [--logfilepath ] [--loglevel (DEBUG|INFO|WARNING|ERROR|CRITICAL)] [--templatepath ] +$ prom2teams --configpath [--logfilepath ] [--loglevel (DEBUG|INFO|WARNING|ERROR|CRITICAL)] [--templatepath ] # To show the help message: $ prom2teams --help