8000 Use Nebius container mirrored images because of docker hub limits by asteny · Pull Request #482 · nebius/soperator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use Nebius container mirrored images because of docker hub limits #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/nodeconfigurator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ nodeConfigurator:
enabled: false
env: []
image:
repository: busybox
repository: cr.eu-north1.nebius.cloud/soperator/busybox
tag: "latest"
pullPolicy: IfNotPresent
nodeSelector: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: mount-accounting-filestore
image: busybox
image: cr.eu-north1.nebius.cloud/soperator/busybox
command:
- /bin/sh
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: mount-controller-spool-filestore
image: busybox
image: cr.eu-north1.nebius.cloud/soperator/busybox
command:
- /bin/sh
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ spec:
containers:
- name: {{ cat "mount-jail" (include "slurm-cluster-storage.volume.jail.type" .) | kebabcase }}
{{- if eq (include "slurm-cluster-storage.volume.jail.type" .) "filestore" }}
image: busybox
image: cr.eu-north1.nebius.cloud/soperator/busybox
{{- else }}
image: ubuntu:focal
image: cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy
{{- end }}
command:
- /bin/sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: mount-jail-submount-filestore
image: busybox
image: cr.eu-north1.nebius.cloud/soperator/busybox
command:
- /bin/sh
- -c
Expand Down
2 changes: 1 addition & 1 deletion images/accounting/slurmdbd.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS controller_slurmdbd

Expand Down
2 changes: 1 addition & 1 deletion images/controller/slurmctld.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS controller_slurmctld

Expand Down
2 changes: 1 addition & 1 deletion images/exporter/exporter.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

# First stage: Build the prometheus-slurm-exporter from source
FROM golang:1.22 AS exporter_builder
Expand Down
2 changes: 1 addition & 1 deletion images/jail/jail.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04 AS cuda
FROM cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy AS cuda

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
Expand Down
2 changes: 1 addition & 1 deletion images/login/sshd.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS login_sshd

Expand Down
2 changes: 1 addition & 1 deletion images/munge/munge.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS munge

Expand Down
2 changes: 1 addition & 1 deletion images/nccl_benchmark/nccl_benchmark.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS nccl_benchmark

Expand Down
2 changes: 1 addition & 1 deletion images/populate_jail/populate_jail.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

# First stage: untap jail_rootfs.tar
FROM $BASE_IMAGE AS untaped
Expand Down
2 changes: 1 addition & 1 deletion images/restd/slurmrestd.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS slurmrestd

Expand Down
6 changes: 3 additions & 3 deletions images/worker/slurmd.dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# BASE_IMAGE defined here for second multistage build
ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

# First stage: Build the gpubench application
FROM golang:1.23 AS gpubench_builder
FROM cr.eu-north1.nebius.cloud/soperator/golang:1.23 AS gpubench_builder

ARG GO_LDFLAGS=""
ARG CGO_ENABLED=0
Expand All @@ -23,7 +23,7 @@ RUN GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=$CGO_ENABLED GO_LDFLAGS=$GO_LDFLAGS \
#######################################################################################################################
# Second stage: Build worker image

ARG BASE_IMAGE=ubuntu:jammy
ARG BASE_IMAGE=cr.eu-north1.nebius.cloud/soperator/ubuntu:jammy

FROM $BASE_IMAGE AS worker_slurmd

Expand Down
2 changes: 1 addition & 1 deletion internal/render/nodeconfigurator/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func createResourceRequirements(limitsMemory, requestsCPU, requestsMemory resour
func renderContainerNodeSysctl() corev1.Container {
return corev1.Container{
Name: consts.ContainerNameNodeSysctl,
Image: "busybox:latest",
Image: "cr.eu-north1.nebius.cloud/soperator/busybox",
SecurityContext: createSecurityContext(true, 0, 0, false, true, nil),
Resources: createResourceRequirements(
resource.MustParse("8Mi"),
Expand Down
4 changes: 2 additions & 2 deletions internal/values/slurm_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func buildSlurmWorkerFrom(
NCCLSettings: *ncclSettings.DeepCopy(),
ContainerToolkitValidation: Container{
NodeContainer: slurmv1.NodeContainer{
Image: "nvcr.io/nvidia/cloud-native/gpu-operator-validator:v23.9.1",
ImagePullPolicy: worker.Slurmd.ImagePullPolicy, // for now the same as Slurmd
Image: "cr.eu-north1.nebius.cloud/soperator/gpu-operator-validator:v23.9.1", // Mirrored nvcr.io/nvidia/cloud-native/gpu-operator-validator:v23.9.1
ImagePullPolicy: worker.Slurmd.ImagePullPolicy, // for now the same as Slurmd
},
Name: consts.ContainerNameToolkitValidation,
},
Expand Down
Loading
0