Gaël Berthaud-Müller
a513f694c2
All checks were successful
continuous-integration/drone/push Build is passing
20 lines
649 B
Docker
20 lines
649 B
Docker
FROM python:slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV PATH=$PATH:/scripts
|
|
|
|
ARG prometheus_version=2.25.0
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y openssh-client curl git && \
|
|
pip install PyYaml yasha && \
|
|
curl -L https://github.com/prometheus/prometheus/releases/download/v${prometheus_version}/prometheus-${prometheus_version}.linux-amd64.tar.gz | tar vzx --strip-components=1 -C /usr/bin prometheus-${prometheus_version}.linux-amd64/promtool
|
|
|
|
|
|
COPY ssh_config /etc/ssh/ssh_config
|
|
COPY known_hosts /root/.ssh/known_hosts
|
|
COPY scripts /scripts
|
|
|
|
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/*
|
|
WORKDIR /workdir
|
|
ENTRYPOINT "bash"
|