Merge ~jacekn/prometheus-alertmanager-snap:master into ~canonical-is-sa/prometheus-alertmanager-snap:master

Proposed by Jacek Nykis
Status: Merged
Merged at revision: a750ceb779f2e04102db85b47f6cbe58c57d1e7c
Proposed branch: ~jacekn/prometheus-alertmanager-snap:master
Merge into: ~canonical-is-sa/prometheus-alertmanager-snap:master
Diff against target: 48 lines (+16/-3)
1 file modified
snapcraft.yaml (+16/-3)
Reviewer Review Type Date Requested Status
Canonical IS SAs Pending
Review via email: mp+331429@code.launchpad.net

Description of the change

Updates to build alertmanager 0.8.0

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/snapcraft.yaml b/snapcraft.yaml
2index ef88870..88eefbe 100644
3--- a/snapcraft.yaml
4+++ b/snapcraft.yaml
5@@ -1,5 +1,6 @@
6 name: prometheus-alertmanager
7-version: master
8+version: 0.8.0
9+grade: stable
10 summary: The Prometheus alertmanager
11 description: |
12 The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.
13@@ -13,14 +14,26 @@ parts:
14 alertmanager:
15 plugin: go
16 source: https://github.com/prometheus/alertmanager.git
17+ source-tag: v0.8.0
18 go-importpath: github.com/prometheus/alertmanager
19 go-packages: [github.com/prometheus/alertmanager/cmd/alertmanager]
20+ build-packages: [golang-1.8]
21+ build: |
22+ # Make sure we use go 1.8
23+ export "PATH=/usr/lib/go-1.8/bin/:$PATH"
24+ export "GOPATH=$PWD/../go" "PATH=$PATH:$PWD/../go/bin"
25+ cd ../go/src/github.com/prometheus/alertmanager/
26+ make build
27+ install: |
28+ mkdir $SNAPCRAFT_PART_INSTALL/bin
29+ cp -p $SNAPCRAFT_PART_INSTALL/../src/alertmanager $SNAPCRAFT_PART_INSTALL/bin/
30 example-config:
31 plugin: dump
32 source: https://github.com/prometheus/alertmanager.git
33+ source-tag: v0.8.0
34 organize:
35 doc/examples/simple.yml: etc/prometheus/alertmanager.yml.example
36- snap:
37+ prime:
38 - etc/prometheus/alertmanager.yml.example
39 snap-wrappers:
40 plugin: dump
41@@ -28,6 +41,6 @@ parts:
42 organize:
43 snap_config_wrapper: bin/prometheus-alertmanager.wrapper
44 daemon_arguments: etc/prometheus/daemon_arguments.example
45- snap:
46+ prime:
47 - bin/prometheus-alertmanager.wrapper
48 - etc/prometheus/daemon_arguments.example

Subscribers

People subscribed via source and target branches

to all changes: