mirror of
https://github.com/singchia/frontier.git
synced 2026-04-23 00:17:06 +08:00
f420773b0e
* Add comprehensive in-process test framework Add unit tests for exchange layer, E2E integration tests, security tests (race + fuzz), and Go benchmark tests replacing the old shell-script-based bench programs. All tests run in-process without requiring an external frontier process. Suppress klog and armorigo log noise in all test files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Update build configs, Dockerfiles and dependencies Update Makefile with new targets, consolidate frontier_all.yaml config, bump base image versions in Dockerfiles, and update go.mod/go.sum. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Revert etc/frontier_all.yaml to previous version Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
891 B
Docker
29 lines
891 B
Docker
FROM golang:1.24.0 AS builder
|
|
|
|
# an automatic platform ARG enabled by Docker BuildKit.
|
|
ARG TARGETOS
|
|
# an automatic platform ARG enabled by Docker BuildKit.
|
|
ARG TARGETARCH
|
|
|
|
ENV GO111MODULE=on \
|
|
GOPROXY=https://goproxy.cn,https://goproxy.io,https://proxy.golang.org,direct
|
|
|
|
WORKDIR /go/src/github.com/singchia/frontier
|
|
RUN --mount=type=bind,readwrite,target=/go/src/github.com/singchia/frontier \
|
|
make DESTDIR=/tmp/install all install-frontier
|
|
|
|
FROM alpine:3.14
|
|
|
|
COPY --from=builder /tmp/install/ /
|
|
|
|
RUN apk --no-cache add ca-certificates wget
|
|
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
|
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk
|
|
RUN apk add glibc-2.34-r0.apk
|
|
|
|
EXPOSE 30010
|
|
EXPOSE 30011
|
|
EXPOSE 30012
|
|
|
|
ENTRYPOINT ["/usr/bin/frontier"]
|
|
CMD ["--config", "/usr/conf/frontier.yaml"] |