Skip to content

Commit

Permalink
cmd/aisinit: Update aisinit docker build and hostname env var
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Wilson <[email protected]>
  • Loading branch information
aaronnw committed Dec 6, 2024
1 parent d3fac9a commit f20f289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/env/ais.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var AIS = struct {
K8sPod: "MY_POD",
K8sNode: "MY_NODE",
K8sNamespace: "K8S_NS",
K8sServiceName: "AIS_K8S_CLUSTER_DOMAIN",
K8sServiceName: "MY_SERVICE",
K8sPublicHostname: "AIS_PUBLIC_HOSTNAME",
K8sClusterDomain: "AIS_K8S_CLUSTER_DOMAIN",
K8sHostNetwork: "HOST_NETWORK",
Expand Down
5 changes: 1 addition & 4 deletions deploy/prod/k8s/aisinit_container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#
# Dockerfile to build an aisinit Docker image
#

ARG INSTALLER_IMAGE=debian:bookworm
ARG BUILDER_IMAGE=golang:1.23
ARG BASE_IMAGE=gcr.io/distroless/static:nonroot

Expand All @@ -15,8 +13,7 @@ COPY . .
ARG TARGETOS
ARG TARGETARCH

RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make aisinit

RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} make aisinit

FROM ${BASE_IMAGE}
COPY --from=builder /go/bin/aisinit /usr/bin
Expand Down

0 comments on commit f20f289

Please sign in to comment.