File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM golang:1.26.4@sha256:68cb6d68bed024785b69195b89af7ac7a444f27791435f98647edff595aa0479 AS build
2+ WORKDIR /ratelimit
3+
4+ ENV GOPROXY=https://proxy.golang.org
5+ COPY go.mod go.sum /ratelimit/
6+ RUN go mod download
7+
8+ COPY src src
9+ COPY script script
10+
11+ RUN CGO_ENABLED=0 GOOS=linux go build -o /go/bin/ratelimit_config_check -ldflags="-w -s" -v github.com/envoyproxy/ratelimit/src/config_check_cmd
12+
13+ FROM gcr.io/distroless/static-debian12:nonroot@sha256:e8a4044e0b4ae4257efa45fc026c0bc30ad320d43bd4c1a7d5271bd241e386d0
14+ COPY --from=build /go/bin/ratelimit_config_check /bin/ratelimit_config_check
15+ ENTRYPOINT ["/bin/ratelimit_config_check"]
Original file line number Diff line number Diff line change @@ -137,6 +137,10 @@ docker_image: docker_tests
137137docker_push : docker_image
138138 docker push $(IMAGE ) :$(VERSION )
139139
140+ .PHONY : docker_config_check_image
141+ docker_config_check_image :
142+ docker build -f Dockerfile.config-check . -t $(IMAGE ) -config-check:$(VERSION )
143+
140144.PHONY : docker_multiarch_image
141145docker_multiarch_image : docker_tests
142146 docker buildx build -t $(IMAGE ) :$(VERSION ) --platform $(BUILDX_PLATFORMS ) .
@@ -145,6 +149,10 @@ docker_multiarch_image: docker_tests
145149docker_multiarch_push : docker_multiarch_image
146150 docker buildx build -t $(IMAGE ) :$(VERSION ) --platform $(BUILDX_PLATFORMS ) --push .
147151
152+ .PHONY : docker_multiarch_config_check_image
153+ docker_multiarch_config_check_image : docker_config_check_image
154+ docker buildx build -t $(IMAGE ) -config-check:$(VERSION ) --platform $(BUILDX_PLATFORMS ) .
155+
148156.PHONY : integration_tests
149157integration_tests :
150158 $(DOCKER_COMPOSE ) --project-directory $(PWD ) -f integration-test/docker-compose-integration-test.yml up --build --exit-code-from tester
You can’t perform that action at this time.
0 commit comments