forked from rafayopen/pingmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (14 loc) · 757 Bytes
/
Dockerfile
File metadata and controls
17 lines (14 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
##
# Build a docker image to run the pingmesh application.
# The CloudWatch version requires /bin/sh, so build from Alpine.
##
FROM alpine:3.12
RUN apk update && apk add --no-cache ca-certificates curl jq && /bin/rm -rf /var/cache/apk/*
ADD cmd/pingmesh/pingmesh.exe /usr/local/bin/pingmesh
# Include -c option to publish to CloudWatch. You must also set the following
# environment variables: AWS_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY.
# Include -v option to turn on verbose logging.
# -N for NATS URL comma-list, -C for path to nats creds,
# -H to override the hostname/IP from the auto-discover,
# -s to set the port
ENTRYPOINT [ "/usr/local/bin/pingmesh", "-N", "tls://connect.ngs.global", "-C", "/etc/ngs/pingtest.creds", "-s", "2002" ]