2023-03-01 19:37:00 +00:00
|
|
|
FROM golang:1.20.1-alpine@sha256:18da4399cedd9e383beb6b104d43aa1d48bd41167e312bb5306d72c51bd11548
|
2021-09-22 20:18:55 +00:00
|
|
|
|
|
|
|
ARG ENROLL_SECRET
|
|
|
|
ARG HOST_COUNT
|
|
|
|
ARG SERVER_URL
|
|
|
|
|
|
|
|
ENV ENROLL_SECRET ${ENROLL_SECRET}
|
|
|
|
ENV HOST_COUNT ${HOST_COUNT}
|
|
|
|
ENV SERVER_URL ${SERVER_URL}
|
|
|
|
|
|
|
|
COPY ./cmd/osquery-perf/agent.go ./go.mod ./go.sum ./cmd/osquery-perf/mac10.14.6.tmpl /osquery-perf/
|
|
|
|
WORKDIR /osquery-perf/
|
|
|
|
RUN go mod download
|
|
|
|
RUN go build -o osquery-perf
|
|
|
|
|
2022-09-12 23:32:43 +00:00
|
|
|
CMD ./osquery-perf -enroll_secret $ENROLL_SECRET -host_count $HOST_COUNT -server_url $SERVER_URL
|