File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -209,8 +209,6 @@ func batchjob(milliCPU int64) workloadv1beta2.AppWrapperComponent {
209209 }
210210}
211211
212- // Using busybox is a hack to avoid pulling a massive pytorch image onto kind cluster in the GitHub runner.
213- // To test the AppWrapper side of things, we don't actually care what the containers are doing
214212const pytorchYAML = `
215213apiVersion: "kubeflow.org/v1"
216214kind: PyTorchJob
@@ -225,9 +223,11 @@ spec:
225223 spec:
226224 terminationGracePeriodSeconds: 0
227225 containers:
228- - name: busybox
229- image: quay.io/project-codeflare/busybox:1.36
230- command: ["sh", "-c", "sleep 120"]
226+ image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v1beta1-fc858d1
227+ command:
228+ - "python3"
229+ - "/opt/pytorch-mnist/mnist.py"
230+ - "--epochs=1"
231231 resources:
232232 requests:
233233 cpu: %v
@@ -239,8 +239,12 @@ spec:
239239 terminationGracePeriodSeconds: 0
240240 containers:
241241 - name: busybox
242- image: quay.io/project-codeflare/busybox:1.36
243- command: ["sh", "-c", "sleep 120"]
242+ - name: pytorch
243+ image: docker.io/kubeflowkatib/pytorch-mnist-cpu:v1beta1-fc858d1
244+ command:
245+ - "python3"
246+ - "/opt/pytorch-mnist/mnist.py"
247+ - "--epochs=1"
244248 resources:
245249 requests:
246250 cpu: %v
You can’t perform that action at this time.
0 commit comments