Provide default working config for artifacts (#1313)

This commit is contained in:
stuart nelson 2018-04-05 16:25:45 +02:00 committed by GitHub
parent f53b24765d
commit b1625a08a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 10 deletions

View File

@ -15,7 +15,7 @@ build:
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball: tarball:
files: files:
- doc/examples/simple.yml - examples/ha/alertmanager.yml
- LICENSE - LICENSE
- NOTICE - NOTICE
crossbuild: crossbuild:

View File

@ -1,13 +1,12 @@
FROM prom/busybox:latest FROM prom/busybox:latest
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com> MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
COPY amtool /bin/amtool COPY amtool /bin/amtool
COPY alertmanager /bin/alertmanager COPY alertmanager /bin/alertmanager
COPY doc/examples/simple.yml /etc/alertmanager/config.yml COPY examples/ha/alertmanager.yml /etc/alertmanager/alertmanager.yml
EXPOSE 9093 EXPOSE 9093
VOLUME [ "/alertmanager" ] VOLUME [ "/alertmanager" ]
WORKDIR /alertmanager WORKDIR /etc/alertmanager
ENTRYPOINT [ "/bin/alertmanager" ] ENTRYPOINT [ "/bin/alertmanager" ]
CMD [ "--config.file=/etc/alertmanager/config.yml", \ CMD [ "--storage.path=/alertmanager" ]
"--storage.path=/alertmanager" ]

View File

@ -1,5 +1,5 @@
a1: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a1 --web.listen-address=:9093 --cluster.listen-address=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml a1: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a1 --web.listen-address=:9093 --cluster.listen-address=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yml
a2: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a2 --web.listen-address=:9094 --cluster.listen-address=127.0.0.1:8002 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml a2: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a2 --web.listen-address=:9094 --cluster.listen-address=127.0.0.1:8002 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yml
a3: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a3 --web.listen-address=:9095 --cluster.listen-address=127.0.0.1:8003 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yaml a3: ./alertmanager --log.level=debug --storage.path=$TMPDIR/a3 --web.listen-address=:9095 --cluster.listen-address=127.0.0.1:8003 --cluster.peer=127.0.0.1:8001 --config.file=examples/ha/alertmanager.yml
wh: go run ./examples/webhook/echo.go wh: go run ./examples/webhook/echo.go