mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-21 20:04:03 +02:00
rebrand changed startup message, built script and Dockerfile
This commit is contained in:
parent
99e43fe340
commit
5fdb171d65
5 changed files with 10 additions and 10 deletions
|
@ -26,7 +26,7 @@ RUN --mount=type=cache,target="/go/pkg/mod" \
|
||||||
--mount=type=bind,src=pkg,dst=/src/pkg \
|
--mount=type=bind,src=pkg,dst=/src/pkg \
|
||||||
make build && \
|
make build && \
|
||||||
mkdir -p /app/error_pages /app/certs && \
|
mkdir -p /app/error_pages /app/certs && \
|
||||||
mv bin/go-proxy /app/go-proxy
|
mv bin/godoxy /app/godoxy
|
||||||
|
|
||||||
# Stage 2: Final image
|
# Stage 2: Final image
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
@ -50,7 +50,7 @@ COPY config.example.yml /app/config/config.yml
|
||||||
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
COPY --from=builder /etc/ssl/certs /etc/ssl/certs
|
||||||
|
|
||||||
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
ENV GOPROXY_DEBUG=0
|
ENV GODOXY_DEBUG=0
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
|
@ -58,4 +58,4 @@ EXPOSE 443
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
CMD ["/app/go-proxy"]
|
CMD ["/app/godoxy"]
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -13,7 +13,7 @@ build:
|
||||||
scripts/build.sh
|
scripts/build.sh
|
||||||
|
|
||||||
test:
|
test:
|
||||||
GOPROXY_TEST=1 go test ./internal/...
|
GODOXY_TEST=1 go test ./internal/...
|
||||||
|
|
||||||
up:
|
up:
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
@ -28,10 +28,10 @@ get:
|
||||||
go get -u ./cmd && go mod tidy
|
go get -u ./cmd && go mod tidy
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
GOPROXY_DEBUG=1 make run
|
GODOXY_DEBUG=1 make run
|
||||||
|
|
||||||
debug-trace:
|
debug-trace:
|
||||||
GOPROXY_DEBUG=1 GOPROXY_TRACE=1 run
|
GODOXY_DEBUG=1 GODOXY_TRACE=1 run
|
||||||
|
|
||||||
profile:
|
profile:
|
||||||
GODEBUG=gctrace=1 make debug
|
GODEBUG=gctrace=1 make debug
|
||||||
|
|
|
@ -62,7 +62,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.Command == common.CommandStart {
|
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.Trace().Msg("trace enabled")
|
||||||
// logging.AddHook(notif.GetDispatcher())
|
// logging.AddHook(notif.GetDispatcher())
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
image: ghcr.io/yusing/go-proxy-frontend:latest
|
image: ghcr.io/yusing/go-proxy-frontend:latest
|
||||||
container_name: go-proxy-frontend
|
container_name: godoxy-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: host
|
network_mode: host
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
@ -21,7 +21,7 @@ services:
|
||||||
- 172.16.0.0/12
|
- 172.16.0.0/12
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/yusing/go-proxy:latest
|
image: ghcr.io/yusing/go-proxy:latest
|
||||||
container_name: go-proxy
|
container_name: godoxy
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: host
|
network_mode: host
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
echo building GoDoxy version ${VERSION}, build flags \"${BUILD_FLAGS}\"
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue