Skip to content

Commit 8326179

Browse files
authored
Merge pull request #157 from mboersma/make-curl-fail
fix(grafana,telegraf): make curl fail on unsuccessful HTTP codes
2 parents e86a018 + c177c70 commit 8326179

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

grafana/rootfs/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ COPY . /
44

55
RUN apt-get update && \
66
apt-get install -y libfontconfig && \
7-
curl -sL -o /usr/share/grafana/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 && \
7+
curl -fsSL -o /usr/share/grafana/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 && \
88
chmod +x /usr/share/grafana/envtpl && \
9-
curl -so /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb && \
9+
curl -fsSo /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb && \
1010
dpkg -i /tmp/grafana.deb && \
1111
rm /tmp/grafana.deb && \
1212
rm /etc/grafana/grafana.ini && \

telegraf/rootfs/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ COPY . /
44

55
RUN mkdir -p /usr/local/bin/ \
66
# This will come back once the kuberentes plugin is release in November
7-
# && curl -SL -o /tmp/telegraf.deb https://dl.influxdata.com/telegraf/releases/telegraf_1.0.0_amd64.deb \
7+
# && curl -fsSL -o /tmp/telegraf.deb https://dl.influxdata.com/telegraf/releases/telegraf_1.0.0_amd64.deb \
88
# && dpkg -i /tmp/telegraf.deb \
99
# && rm /tmp/telegraf.deb \
10-
&& curl -sSL -o /usr/bin/telegraf https://storage.googleapis.com/telegraf/telegraf \
10+
&& curl -fsSL -o /usr/bin/telegraf https://storage.googleapis.com/telegraf/telegraf \
1111
&& chmod +x /usr/bin/telegraf \
12-
&& curl -sSL -o /usr/bin/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 \
12+
&& curl -fsSL -o /usr/bin/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 \
1313
&& chmod +x /usr/bin/envtpl \
14-
&& curl -Ls -o /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \
14+
&& curl -fsSL -o /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \
1515
&& chmod +x /usr/bin/jq
1616

1717
CMD ["/start-telegraf"]

0 commit comments

Comments
 (0)