scripts moved to makefile, tcp/udp connections can now close gracefully, but udp is still failing testing with palworld server

This commit is contained in:
yusing
2024-03-04 19:09:36 +08:00
parent c94a13d273
commit a5c53a4f4f
16 changed files with 649 additions and 327 deletions

29
Makefile Normal file
View File

@@ -0,0 +1,29 @@
.PHONY: build up restart logs get test-udp-container
all: build up logs
build:
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go build -o bin/go-proxy src/go-proxy/*.go
up:
docker compose up -d --build go-proxy
restart:
docker compose down -t 0
docker compose up -d
logs:
docker compose logs -f
get:
go get -d -u ./src/go-proxy
udp-server:
docker run -it --rm \
-p 9999:9999/udp \
--label proxy.test-udp.scheme=udp \
--label proxy.test-udp.port=20003:9999 \
--network data_default \
--name test-udp \
$$(docker build -q -f udp-test-server.Dockerfile .)