This repository was archived by the owner on Mar 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Add TCP Healthcheck Listener To STUN Service #1
Open
arparsec
wants to merge
14
commits into
parsec-cloud:master
Choose a base branch
from
arparsec:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f983a77
Add a TCP heathcheck to STUN server.
arparsec 63e5c06
Add a docker file, to support containers.
arparsec aeb3e46
Read data off of the TCP connection.
arparsec 18b32a9
tcpHealthCheckListener never returns.
arparsec 4c637f9
Add a sidecar health check service for STUN
arparsec 847752d
Move and revert stun server changes.
arparsec a96647a
Remove the old stun server.
arparsec 0be1d38
Add updated Dockerfile and a bootstrap script.
arparsec e1eaccd
server -> service
arparsec 8aa0e0c
Newlines.
arparsec 758224e
Rename for consistency
arparsec f26f73e
Add tests for Validate request.
arparsec d72f97c
Add tests for makeResponse.
arparsec b40f410
Make sure the bootstrap script handles SIGTERM.
arparsec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| FROM golang:1.17.7-buster | ||
| ENV STUN_USER STUN | ||
| ENV STUN_HOME /go/src/stun | ||
| ARG GROUP_ID | ||
| ARG USER_ID | ||
| RUN groupadd --gid $GROUP_ID STUN && useradd -m -l --uid $USER_ID --gid $GROUP_ID $STUN_USER | ||
| RUN mkdir -p $STUN_HOME && chown -R $STUN_USER:$STUN_USER $STUN_HOME | ||
| USER $STUN_USER | ||
| WORKDIR $STUN_HOME | ||
| COPY main.go main.go | ||
| EXPOSE 3478/udp | ||
| EXPOSE 8888/tcp | ||
| RUN GO111MODULE=off CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build . | ||
| CMD ["./stun", "-hc"] | ||
|
|
||
| # docker build --build-arg USER_ID=1234 --build-arg GROUP_ID=1234 -t stun-server . | ||
| # docker run -it --rm -p 8888:8888/tcp -p 3478:3478/udp stun-server | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.