summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-12 17:56:54 +0000
committerLusheng Ji <lji@research.att.com>2017-09-12 17:57:01 +0000
commita7d0d37bdab8a8d93ceb872219d9397da294dc51 (patch)
tree3164490bd2bf7a623fbcacb56098344f9064c9f6
parent72725a2d9e1f23f74d2e0c4343e38b92fb68916f (diff)
Legalize docker image name
Issue-Id: DCAEGEN2-60 Change-Id: I08fccf8849ebebfc326cf998fffbba490d31a860 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xmvn-phase-lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh
index 6eb4b38b..d3c3f258 100755
--- a/mvn-phase-lib.sh
+++ b/mvn-phase-lib.sh
@@ -231,6 +231,7 @@ build_and_push_docker()
{
IMAGENAME="onap/${FQDN}.${MVN_PROJECT_MODULEID}"
IMAGENAME=$(echo "$IMAGENAME" | sed -e 's/_*$//g' -e 's/\.*$//g')
+ IMAGENAME=$(echo "$IMAGENAME" | tr '[:upper:]' '[:lower:]')
# use the major and minor version of the MVN artifact version as docker image version
VERSION="${MVN_PROJECT_VERSION//[^0-9.]/}"