Skip to content

Commit 25d201a

Browse files
committed
jiralert: Fix Ubuntu builds
* Add make to Ubuntu package deps * Use golang 1.16, since Focal provides 1.13 but 1.15 is minimum Change-Id: If9817bf27dc479c644c5e31d928cd2f6312f32ec
1 parent 8388d80 commit 25d201a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/prometheus/prometheus-jiralert/Dockerfile.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1515
] %}
1616
{% elif base_package_type == 'deb' %}
1717
{% set prometheus_jiralert_packages = [
18-
'golang-go',
18+
'golang-1.16-go',
19+
'make',
1920
] %}
2021
{% endif %}
2122

@@ -28,7 +29,8 @@ ARG prometheus_jiralert_url=https://github.com/stackhpc/jiralert/archive/refs/he
2829

2930
{% block prometheus_jiralert_install %}
3031
ENV GOPATH=/build
31-
RUN mkdir /build \
32+
RUN PATH={% if base_package_type == 'deb' %}/usr/lib/go-1.16/bin:{% endif %}$PATH \
33+
&& mkdir /build \
3234
&& cd /build \
3335
&& curl -o jiralert.tar.gz ${prometheus_jiralert_url} \
3436
&& tar xvf jiralert.tar.gz \

0 commit comments

Comments
 (0)