This commit is contained in:
commit
ee8be1c7bc
3 changed files with 42 additions and 0 deletions
22
.drone.yml
Normal file
22
.drone.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: storagebox-exporter
|
||||
|
||||
steps:
|
||||
- name: go-build
|
||||
image: golang
|
||||
commands:
|
||||
- git clone https://github.com/prometheus/alertmanager.git
|
||||
- cd alertmanager
|
||||
- make build
|
||||
- ls -lAh
|
||||
- ls ?
|
||||
- name: docker-build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: DOCKER_USERNAME
|
||||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
repo: aaronriedel/alertmanager
|
||||
tags: latest
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
||||
LABEL maintainer="The Prometheus Authors <prometheus-developers@googlegroups.com>"
|
||||
|
||||
COPY alertmanager/amtool /bin/amtool
|
||||
COPY alertmanager/alertmanager /bin/alertmanager
|
||||
COPY alertmanager/examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
|
||||
|
||||
RUN mkdir -p /alertmanager && \
|
||||
chown -R nobody:nobody etc/alertmanager /alertmanager
|
||||
|
||||
USER nobody
|
||||
EXPOSE 9093
|
||||
VOLUME [ "/alertmanager" ]
|
||||
WORKDIR /alertmanager
|
||||
ENTRYPOINT [ "/bin/alertmanager" ]
|
||||
CMD [ "--config.file=/etc/alertmanager/alertmanager.yml", \
|
||||
"--storage.path=/alertmanager" ]
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
[![Build Status](https://drone.ar21.de/api/badges/aaron/alertmanager-build/status.svg)](https://drone.ar21.de/aaron/alertmanager-build)
|
Loading…
Reference in a new issue