aboutsummaryrefslogtreecommitdiffstats
path: root/switch-snmp/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'switch-snmp/Dockerfile')
-rw-r--r--switch-snmp/Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/switch-snmp/Dockerfile b/switch-snmp/Dockerfile
index a056214..4369d61 100644
--- a/switch-snmp/Dockerfile
+++ b/switch-snmp/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:20.04
+FROM reg.reaweb.uk/cron
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y
@@ -11,7 +11,7 @@ RUN unzip -j "privateMibs(20220831).zip" -d /usr/share/snmp/mibs
RUN pip3 install -r requirements.txt
RUN rm "privateMibs(20220831).zip"
-RUN echo "*/1 * * * * root python3 /app/snmp-omada.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
-RUN echo "*/1 * * * * root sh -c 'sleep 30 && python3 /app/snmp-omada.py' > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab
+RUN echo "*/1 * * * * root python3 /app/switches.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
+# RUN echo "*/1 * * * * root sh -c 'sleep 30 && python3 /app/switches.py' > /proc/1/fd/1 2>/proc/1/fd/2" >> /etc/crontab
ENTRYPOINT ["bash"]
CMD ["entrypoint.sh"]