Skip to content

Commit b594b4b

Browse files
chzblychZhanruiSunCh
authored andcommitted
[None][infra] Avoid intermittent access broken to nvcr.io (NVIDIA#6715)
Signed-off-by: Yanchao Lu <[email protected]> Co-authored-by: Zhanrui Sun <[email protected]>
1 parent 8b00fd4 commit b594b4b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jenkins/BuildDockerImage.groovy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ def buildImage(config, imageKeyToTag)
293293
BASE_IMAGE = BASE_IMAGE.replace("nvcr.io/", "urm.nvidia.com/docker/")
294294
TRITON_IMAGE = TRITON_IMAGE.replace("nvcr.io/", "urm.nvidia.com/docker/")
295295

296+
if (target == "rockylinux8") {
297+
BASE_IMAGE = sh(script: "cd ${LLM_ROOT} && grep 'jenkins-rockylinux8_%: BASE_IMAGE =' docker/Makefile | grep -o '=.*' | tr -d '=\"'", returnStdout: true).trim()
298+
}
299+
300+
// Replace the base image and triton image with the internal mirror
301+
BASE_IMAGE = BASE_IMAGE.replace("nvcr.io/", "urm.nvidia.com/docker/")
302+
TRITON_IMAGE = TRITON_IMAGE.replace("nvcr.io/", "urm.nvidia.com/docker/")
303+
296304
if (dependent) {
297305
stage ("make ${dependent.target}_${action} (${arch})") {
298306
def randomSleep = (Math.random() * 300 + 300).toInteger()

0 commit comments

Comments
 (0)