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" ]
|
Reference in New Issue