From 3ed05268e1e3946e88521333ca84a3eb4c2eea5a Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Wed, 7 Feb 2024 13:15:13 -0700 Subject: [PATCH] Update the MET Dockerfiles to set replace slashes with underscores when setting MET_GIT_NAME --- internal/scripts/docker/Dockerfile | 2 +- internal/scripts/docker/Dockerfile.copy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/scripts/docker/Dockerfile b/internal/scripts/docker/Dockerfile index c5daf58492..d2acbed3f6 100644 --- a/internal/scripts/docker/Dockerfile +++ b/internal/scripts/docker/Dockerfile @@ -19,7 +19,7 @@ RUN if [ "x${SOURCE_BRANCH}" = "x" ]; then \ echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \ fi -ENV MET_GIT_NAME ${SOURCE_BRANCH} +ENV MET_GIT_NAME $(echo ${SOURCE_BRANCH} | sed 's%/%_%g') ENV MET_REPO_DIR /met/MET-${MET_GIT_NAME} ENV MET_GIT_URL https://github.com/dtcenter/MET ENV MET_DEVELOPMENT true diff --git a/internal/scripts/docker/Dockerfile.copy b/internal/scripts/docker/Dockerfile.copy index 4d3d9476cd..59941a5f03 100644 --- a/internal/scripts/docker/Dockerfile.copy +++ b/internal/scripts/docker/Dockerfile.copy @@ -19,7 +19,7 @@ RUN if [ "x${SOURCE_BRANCH}" = "x" ]; then \ echo "Build Argument SOURCE_BRANCH=${SOURCE_BRANCH}"; \ fi -ENV MET_GIT_NAME ${SOURCE_BRANCH} +ENV MET_GIT_NAME $(echo ${SOURCE_BRANCH} | sed 's%/%_%g') ENV MET_REPO_DIR /met/MET-${MET_GIT_NAME} ENV MET_GIT_URL https://github.com/dtcenter/MET ENV MET_DEVELOPMENT true