|
12 | 12 | # supervisor-builder Release openshell-sandbox binary |
13 | 13 | # supervisor-output Minimal stage exporting only the supervisor binary |
14 | 14 |
|
| 15 | +# Pin by tag AND manifest-list digest to prevent silent upstream republishes |
| 16 | +# from breaking the build. Update both when bumping k3s versions. |
| 17 | +# To refresh: docker buildx imagetools inspect rancher/k3s:<tag> | head -3 |
15 | 18 | ARG K3S_VERSION=v1.35.2-k3s1 |
| 19 | +ARG K3S_DIGEST=sha256:c3184157c3048112bab0c3e17405991da486cb3413511eba23f7650efd70776b |
16 | 20 | ARG K9S_VERSION=v0.50.18 |
17 | 21 | ARG HELM_VERSION=v3.17.3 |
18 | 22 | ARG NVIDIA_CONTAINER_TOOLKIT_VERSION=1.18.2-1 |
@@ -181,7 +185,7 @@ CMD ["--port", "8080"] |
181 | 185 | # --------------------------------------------------------------------------- |
182 | 186 | # Cluster asset stages |
183 | 187 | # --------------------------------------------------------------------------- |
184 | | -FROM rancher/k3s:${K3S_VERSION} AS k3s |
| 188 | +FROM rancher/k3s:${K3S_VERSION}@${K3S_DIGEST} AS k3s |
185 | 189 |
|
186 | 190 | FROM ubuntu:24.04 AS k9s |
187 | 191 | ARG K9S_VERSION |
@@ -262,6 +266,11 @@ COPY deploy/kube/manifests/*.yaml /opt/openshell/manifests/ |
262 | 266 | COPY deploy/kube/gpu-manifests/*.yaml /opt/openshell/gpu-manifests/ |
263 | 267 |
|
264 | 268 | ENTRYPOINT ["/usr/local/bin/cluster-entrypoint.sh"] |
| 269 | +# Default to "server" so bare `docker run <image>` works without requiring |
| 270 | +# the caller to pass a subcommand. The openshell CLI already passes |
| 271 | +# ["server", "--disable=traefik", ...] as CMD; this default only affects |
| 272 | +# manual `docker run` invocations that omit a command. |
| 273 | +CMD ["server"] |
265 | 274 |
|
266 | 275 | HEALTHCHECK --interval=5s --timeout=5s --start-period=20s --retries=60 \ |
267 | 276 | CMD ["/usr/local/bin/cluster-healthcheck.sh"] |
0 commit comments