rebrand changed startup message, built script and Dockerfile

This commit is contained in:
yusing 2024-11-04 03:47:37 +08:00
parent 99e43fe340
commit 5fdb171d65
5 changed files with 10 additions and 10 deletions

View file

@ -26,7 +26,7 @@ RUN --mount=type=cache,target="/go/pkg/mod" \
--mount=type=bind,src=pkg,dst=/src/pkg \
make build && \
mkdir -p /app/error_pages /app/certs && \
mv bin/go-proxy /app/go-proxy
mv bin/godoxy /app/godoxy
# Stage 2: Final image
FROM scratch
@ -50,7 +50,7 @@ COPY config.example.yml /app/config/config.yml
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
ENV DOCKER_HOST=unix:///var/run/docker.sock
ENV GOPROXY_DEBUG=0
ENV GODOXY_DEBUG=0
EXPOSE 80
EXPOSE 8888
@ -58,4 +58,4 @@ EXPOSE 443
WORKDIR /app
CMD ["/app/go-proxy"]
CMD ["/app/godoxy"]

View file

@ -13,7 +13,7 @@ build:
scripts/build.sh
test:
GOPROXY_TEST=1 go test ./internal/...
GODOXY_TEST=1 go test ./internal/...
up:
docker compose up -d
@ -28,10 +28,10 @@ get:
go get -u ./cmd && go mod tidy
debug:
GOPROXY_DEBUG=1 make run
GODOXY_DEBUG=1 make run
debug-trace:
GOPROXY_DEBUG=1 GOPROXY_TRACE=1 run
GODOXY_DEBUG=1 GODOXY_TRACE=1 run
profile:
GODEBUG=gctrace=1 make debug

View file

@ -62,7 +62,7 @@ func main() {
}
if args.Command == common.CommandStart {
logging.Info().Msgf("go-proxy version %s", pkg.GetVersion())
logging.Info().Msgf("GoDoxy version %s", pkg.GetVersion())
logging.Trace().Msg("trace enabled")
// logging.AddHook(notif.GetDispatcher())
} else {

View file

@ -2,7 +2,7 @@
services:
frontend:
image: ghcr.io/yusing/go-proxy-frontend:latest
container_name: go-proxy-frontend
container_name: godoxy-frontend
restart: unless-stopped
network_mode: host
env_file: .env
@ -21,7 +21,7 @@ services:
- 172.16.0.0/12
app:
image: ghcr.io/yusing/go-proxy:latest
container_name: go-proxy
container_name: godoxy
restart: always
network_mode: host
env_file: .env

View file

@ -2,4 +2,4 @@
mkdir -p bin
echo building GoDoxy version ${VERSION}, build flags \"${BUILD_FLAGS}\"
go build -ldflags "${BUILD_FLAGS}" -pgo=auto -o bin/go-proxy ./cmd
go build -ldflags "${BUILD_FLAGS}" -pgo=auto -o bin/godoxy ./cmd