Compare commits

...

3 Commits

Author SHA1 Message Date
0241f9f36c fixing order of operations
All checks were successful
/ Plan (push) Successful in 4m24s
/ Plan (pull_request) Successful in 28s
/ Deploy (pull_request) Successful in 28s
2025-08-18 13:57:56 -05:00
0cca15af60 updating to trixie and flattening image
Some checks failed
/ Plan (push) Failing after 44s
2025-08-18 13:56:15 -05:00
aab45796ae fixing sleep error
All checks were successful
/ Plan (push) Successful in 5m16s
/ Plan (pull_request) Successful in 6m37s
/ Deploy (pull_request) Successful in 27s
2025-03-19 01:21:05 -05:00
2 changed files with 4 additions and 6 deletions

View File

@@ -1,11 +1,9 @@
FROM debian:bullseye-slim
FROM debian:trixie-slim
#
COPY logpingresult.py /usr/local/bin/
COPY requirements.txt /
COPY init.sh /
RUN chmod +x /init.sh
RUN apt update && apt install python3 python3-pip iputils-ping -y && pip3 install -r /requirements.txt --break-system-packages && apt clean
COPY logpingresult.py /usr/local/bin/
RUN chmod +x /usr/local/bin/logpingresult.py
RUN apt update && apt install python3 python3-pip iputils-ping -y
RUN pip3 install -r /requirements.txt
RUN apt clean
CMD ["/init.sh"]

View File

@@ -26,7 +26,7 @@ while(True):
response = sp.getstatusoutput(f"ping -c 1 {ip}")
print(response)
if(response[0]!=0):
time=2000
myresp=2000
else:
myresp = response[1].split("\n")[1].split(' ')[6].split('=')[1]