Update to latest debian & prometheus python library
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,24 +1,17 @@
|
|||||||
FROM debian:buster
|
FROM debian:bookworm
|
||||||
|
|
||||||
RUN : \
|
RUN : \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
|
backblaze-b2 \
|
||||||
curl \
|
curl \
|
||||||
|
dumb-init \
|
||||||
python3 \
|
python3 \
|
||||||
python3-prometheus-client \
|
python3-prometheus-client \
|
||||||
python3-yaml \
|
python3-yaml \
|
||||||
restic \
|
restic \
|
||||||
&& apt-get -y clean
|
&& apt-get -y clean
|
||||||
|
|
||||||
RUN : \
|
|
||||||
&& curl -s -L -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 \
|
|
||||||
&& chmod +x /usr/local/bin/dumb-init
|
|
||||||
|
|
||||||
RUN : \
|
|
||||||
&& curl -s -L https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_amd64.bz2 \
|
|
||||||
| bzip2 > /usr/local/bin/restic \
|
|
||||||
&& chmod +x /usr/local/bin/restic
|
|
||||||
|
|
||||||
COPY ./restic-monitor.py /usr/local/bin/restic-monitor
|
COPY ./restic-monitor.py /usr/local/bin/restic-monitor
|
||||||
|
|
||||||
CMD ["/usr/local/bin/dumb-init", "--", "/usr/local/bin/restic-monitor", "/etc/restic-backblaze-config.yml"]
|
CMD ["/usr/bin/dumb-init", "--", "/usr/local/bin/restic-monitor", "/etc/restic-backblaze-config.yml"]
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import subprocess
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
import prometheus_client
|
import prometheus_client
|
||||||
|
import prometheus_client.core
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
with open(sys.argv[1], 'r') as fd:
|
with open(sys.argv[1], 'r') as fd:
|
||||||
|
|||||||
Reference in New Issue
Block a user