📦 build: add operator tooling and harden setup

This commit is contained in:
2026-08-13 02:19:14 +07:00
parent da6eafcae6
commit af9d918b03
2 changed files with 67 additions and 26 deletions
+8
View File
@@ -47,6 +47,14 @@ RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/s
# Install Helm
RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
# Install Go for the Kubernetes operator
ARG GO_VERSION=1.26.5
RUN ARCH=$(dpkg --print-architecture) \
&& curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o /tmp/go.tar.gz \
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
&& rm /tmp/go.tar.gz
ENV PATH="/usr/local/go/bin:/home/dev/go/bin:${PATH}"
# Enable systemd
RUN find /lib/systemd/system/sysinit.target.wants -mindepth 1 -not -name "systemd-tmpfiles-setup.service" -delete; \
find /lib/systemd/system/multi-user.target.wants -mindepth 1 -not -name "systemd-user-sessions.service" -delete; \