Skip to content

Commit

Permalink
Merge pull request #157 from mboersma/make-curl-fail
Browse files Browse the repository at this point in the history
fix(grafana,telegraf): make curl fail on unsuccessful HTTP codes
  • Loading branch information
mboersma authored Oct 25, 2016
2 parents e86a018 + c177c70 commit 8326179
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions grafana/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ COPY . /

RUN apt-get update && \
apt-get install -y libfontconfig && \
curl -sL -o /usr/share/grafana/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 && \
curl -fsSL -o /usr/share/grafana/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 && \
chmod +x /usr/share/grafana/envtpl && \
curl -so /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb && \
curl -fsSo /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.0-1468321182_amd64.deb && \
dpkg -i /tmp/grafana.deb && \
rm /tmp/grafana.deb && \
rm /etc/grafana/grafana.ini && \
Expand Down
8 changes: 4 additions & 4 deletions telegraf/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ COPY . /

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

CMD ["/start-telegraf"]

0 comments on commit 8326179

Please sign in to comment.