Skip to content

Commit 5d287df

Browse files
committed
feat(k8s): add batch sandbox expire & endpoints status
1 parent ff0b13f commit 5d287df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1916
-656
lines changed

kubernetes/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o se
4242
# Use golang image as base to ensure nsenter (util-linux) is available
4343
# distroless does not contain shell or nsenter
4444
FROM golang:1.25
45-
WORKDIR /
45+
ARG USERID=65532
46+
WORKDIR /workspace
4647
COPY --from=builder /workspace/server .
47-
USER 65532
48-
ENTRYPOINT ["/server"]
48+
USER $USERID
49+
ENTRYPOINT ["/workspace/server"]

kubernetes/Dockerfile.debug

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ WORKDIR /workspace
99
# Set cache env vars to ensuring they are targeted by our volume mounts
1010
ENV GOCACHE=/go/.cache/go-build
1111
ENV GOMODCACHE=/go/pkg/mod
12-
1312
# Expose ports
14-
EXPOSE 8080 2345
13+
EXPOSE 5758 2345
1514

1615
# The default command will be overridden by the script, but we can set a safe default
1716
CMD ["bash"]

kubernetes/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ docker-build: docker-build-controller
185185

186186
.PHONY: docker-build-controller
187187
docker-build-controller: ## Build docker image with the manager.
188-
$(CONTAINER_TOOL) build --build-arg PACKAGE=cmd/controller/main.go --build-arg ENTRYPOINT=manager -t ${IMG} .
188+
$(CONTAINER_TOOL) build --build-arg PACKAGE=cmd/controller/main.go -t ${IMG} .
189189

190190
.PHONY: docker-build-task-executor
191191
docker-build-task-executor: ## Build docker image with task-executor.
192-
$(CONTAINER_TOOL) build --build-arg PACKAGE=cmd/task-executor/main.go --build-arg ENTRYPOINT=server -t ${TASK_EXECUTOR_IMG} .
192+
$(CONTAINER_TOOL) build --build-arg PACKAGE=cmd/task-executor/main.go --build-arg USERID=0 -t ${TASK_EXECUTOR_IMG} .
193193

194194
.PHONY: docker-push
195195
# docker-push: ## Push docker image with the manager.

0 commit comments

Comments
 (0)