Refactor: Containerization and directory restructuring
Some checks failed
Zabbix APK Builder / check-version (push) Successful in 11s
Zabbix APK Builder / update-version (push) Failing after 11s
Zabbix APK Builder / build-packages (push) Has been skipped
Zabbix APK Builder / deploy-test (push) Has been skipped

This commit is contained in:
2025-12-16 15:20:44 +01:00
parent 71e85c2e6e
commit 0a66a800b5
5 changed files with 803 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
FROM python:3.12-slim
# Install dependencies
RUN pip install --no-cache-dir pymysql pyyaml
# Copy main script and entrypoint
# Note: Build context should be the parent directory 'partitioning/'
COPY script/zabbix_partitioning.py /usr/local/bin/zabbix_partitioning.py
COPY docker/entrypoint.py /usr/local/bin/entrypoint.py
# Set permissions
RUN chmod +x /usr/local/bin/zabbix_partitioning.py /usr/local/bin/entrypoint.py
# Entrypoint
ENTRYPOINT ["python3", "/usr/local/bin/entrypoint.py"]