forked from kubernauts/jmeter-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-reporter
24 lines (22 loc) · 989 Bytes
/
Dockerfile-reporter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# build
FROM golang:1.8-stretch AS build
WORKDIR /go/src/${owner:-github.com/IzakMarais}/reporter
RUN apt-get update && apt-get install -y make git
RUN git clone https://${owner:-github.com/IzakMarais}/reporter .
RUN make build
# create image
FROM debian:stretch
RUN PACKAGES="wget libswitch-perl texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra ca-certificates" \
&& apt-get update \
&& apt-get install -y -qq $PACKAGES --no-install-recommends \
&& wget -qO- http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz |tar xz \
&& cd install-tl-* \
&& ./install-tl -profile /texlive.profile \
# Cleanup
&& rm -rf install-tl-* \
&& apt-get remove --purge -y -qq $PACKAGES \
&& apt-get autoremove --purge -y -qq \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /var/tex
COPY --from=build /go/bin/grafana-reporter /usr/local/bin
ENTRYPOINT [ "/usr/local/bin/grafana-reporter","-ip","jmeter-grafana:3000" ]