forked from livepeer/stream-tester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.load-tester
39 lines (25 loc) · 1.19 KB
/
Dockerfile.load-tester
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM golang:1-stretch as builder
WORKDIR /root
ENV GOFLAGS "-mod=readonly"
ARG version
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download
COPY cmd cmd
COPY internal internal
COPY model model
COPY messenger messenger
COPY apis apis
RUN echo $version
RUN go build -ldflags="-X 'github.com/livepeer/stream-tester/model.Version=$version' -X 'github.com/livepeer/stream-tester/model.IProduction=true'" cmd/streamtester/streamtester.go
RUN go build -ldflags="-X 'github.com/livepeer/stream-tester/model.Version=$version' -X 'github.com/livepeer/stream-tester/model.IProduction=true'" cmd/loadtester/loadtester.go
RUN go build -ldflags="-X 'github.com/livepeer/stream-tester/model.Version=$version' -X 'github.com/livepeer/stream-tester/model.IProduction=true'" cmd/recordtester/recordtester.go
FROM debian:stretch-slim
WORKDIR /root
# RUN apt update && apt install -y ca-certificates jq libgnutls30 && apt clean
RUN apt update && apt install -y ca-certificates && apt clean
COPY --from=builder /root/streamtester streamtester
COPY --from=builder /root/loadtester loadtester
COPY --from=builder /root/recordtester recordtester
RUN apt-get update && apt-get install -y curl
# RUN /root/loadtester -help