1
0
Fork 0

add Dockerfile
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Massaki Archambault 2021-09-10 21:13:12 -04:00
parent e317b64fcc
commit 3d2bb10e77
3 changed files with 31 additions and 0 deletions

17
.drone.yml Normal file
View File

@ -0,0 +1,17 @@
kind: pipeline
type: kubernetes
name: arm64
node_selector:
beta.kubernetes.io/arch: arm64
steps:
- name: docker
image: plugins/docker
settings:
repo: badjware/blackbox-exporter-tweak
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM prom/blackbox-exporter:v0.19.0 as bbe
FROM alpine:3.14.2
EXPOSE 9115
COPY --from=bbe /bin/blackbox_exporter /bin/blackbox_exporter
COPY --from=bbe /etc/blackbox_exporter/config.yml /etc/blackbox_exporter/config.yml
RUN apk add --no-cache libcap \
&& setcap cap_net_raw+ep /bin/blackbox_exporter
ENTRYPOINT [ "/bin/blackbox_exporter" ]
CMD [ "-config.file=/etc/blackbox_exporter/config.yml" ]

View File

@ -1,3 +1,4 @@
# blackbox-exporter-tweak # blackbox-exporter-tweak
[![Build Status](https://drone.badjware.dev/api/badges/badjware/blackbox-exporter-tweak/status.svg)](https://drone.badjware.dev/badjware/blackbox-exporter-tweak)
blackbox-exporter docker image with some tweaks blackbox-exporter docker image with some tweaks