Skip to content

Commit cef318c

Browse files
committed
Initial changes for deployment
1 parent b7dfb40 commit cef318c

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM python:3.4-alpine
1+
FROM python:3.11-alpine
22
MAINTAINER Artem Alexandrov <[email protected]>
3-
ENV REFRESHED_AT 2017013001
3+
ENV REFRESHED_AT 2024050501
44
ENV CONFIG_FILE /config.yml
5-
COPY requirements.txt /zabbix-cachet/requirements.txt
6-
COPY zabbix-cachet.py /zabbix-cachet/zabbix-cachet.py
7-
RUN pip3 install -r /zabbix-cachet/requirements.txt
8-
WORKDIR /opt/
5+
WORKDIR /opt/zabbix-cachet
6+
COPY requirements.txt .
7+
COPY . ./
8+
RUN pip3 install -e .
99

10-
CMD ["python", "/zabbix-cachet/zabbix-cachet.py"]
10+
CMD ["python", "/opt/zabbix-cachet/main.py"]
1111

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ pyzabbix==1.3.1
33
requests>=2.21.0
44
pytz==2024.1
55
# Dev only
6-
pytest==8.2.0
7-
pytest-env==1.1.3
6+
#pytest==8.2.0
7+
#pytest-env==1.1.3

setup.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717
'Programming Language :: Python :: 3.7',
1818
'Programming Language :: Python :: 3.8',
1919
'Programming Language :: Python :: 3.9',
20+
'Programming Language :: Python :: 3.10',
21+
'Programming Language :: Python :: 3.11',
2022
"License :: OSI Approved :: MIT License",
2123
"Operating System :: OS Independent",
2224
"Topic :: System :: Monitoring",
2325
],
2426
python_requires=">=3.6",
2527
install_requires=[
2628
"requests>=2.21.0",
27-
# TODO: Check versions!
28-
"PyYAML==6.0",
29-
"pyzabbix==1.2.1",
29+
"PyYAML>=5.4",
30+
"pyzabbix==1.3.1",
3031
"pytz",
3132
],
3233
)

0 commit comments

Comments
 (0)