Minor cleanup and and got the client sending agents again.

This commit is contained in:
James Wells 2022-07-14 13:27:46 -07:00
parent 42623f63c6
commit 134f33cd6a
Signed by: jwells
GPG key ID: 73196D10B8E65666
7 changed files with 50 additions and 64 deletions

View file

@ -1,4 +1,4 @@
FROM dragonheim/golang:1.17 as builder
FROM dragonheim/golang:1.18 as builder
ARG SEMVER
WORKDIR /gagent
@ -12,7 +12,7 @@ RUN apk add --no-cache zeromq-dev build-base git
RUN go build -o /gagent/bin/gagent -ldflags "-X main.semVER=${SEMVER}" cmd/gagent/main.go
RUN strip /gagent/bin/gagent
FROM alpine:3.15
FROM alpine:3.16
ARG SEMVER
LABEL Name="G'Agent"
LABEL Maintainer="jwells@dragonheim.net"
@ -23,8 +23,8 @@ RUN apk add --no-cache zeromq && mkdir -p -m 0700 /etc/gagent
COPY --from=builder /gagent/assets/examples/gagent.hcl /etc/gagent/gagent.hcl
COPY --from=builder /gagent/bin/gagent /usr/bin/
# Router Client Worker
EXPOSE 35570/tcp 35571/tcp 35572/tcp
# Router Client Worker Prometheus
EXPOSE 35570/tcp 35572/tcp 35571/tcp 9101/tcp
VOLUME /etc/gagent
CMD ["/usr/bin/gagent"]

View file

@ -9,4 +9,5 @@
"clients": {
"client": "7e9d13fe-5151-5876-66c0-20ca03e8fca4"
}
}
}