add Dockerfile
This commit is contained in:
parent
e317b64fcc
commit
3d2bb10e77
|
@ -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
|
|
@ -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" ]
|
|
@ -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
|
Reference in New Issue