-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I have built a docker container around this, to try and then copy it into our application container, however, I can't get the process to stay running:
Dockerfile
# syntax=docker/dockerfile:1
FROM golang:1.17-buster
WORKDIR /app
COPY *.go makefile ./
COPY net ./net
COPY command ./command
COPY x509 ./x509
RUN go mod init github.com/pbergman/graylog-proxy && \
go mod tidy && \
go build -o /usr/sbin/graylog-proxy main.go && \
strip /usr/sbin/graylog-proxy
CMD [ "/usr/sbin/graylog-proxy" ]Then build and run the container:
I get the following output:
docker run -it --rm proxy-test graylog-proxy listen -vvv --no-client-auth udp://127.0.0.1:12201 udp://127.0.0.2:1234
[2021-12-12 22:51:02.154612] listen.DEBUG: starting forward udp://127.0.0.1:12201 → udp://127.0.0.2:1234
$
I can't figure out why it's stopping immediately, the return code is 4, and its immediate.
running with time cmd:
real 0m0.537s
user 0m0.018s
sys 0m0.019s
Metadata
Metadata
Assignees
Labels
No labels