@@ -32,6 +32,11 @@ function read_build_recipe() {
3232 export BES_VERSION=" "
3333 export BUILD_DMRPP_VERSION=" "
3434 export LIBDAP_VERSION=" "
35+ export SNAPSHOT_IMAGE_TAG=" "
36+ export BUILD_VERSION_TAG=" "
37+ export OS_SNAPSHOT_IMAGE_TAG=" "
38+ export OS_BUILD_VERSION_TAG=" "
39+
3540 RELEASE_DATE=${RELEASE_DATE:- $(echo " ${build_recipe} " | grep hyrax | awk ' {print $2;}' )}
3641 HYRAX_VERSION=${HYRAX_VERSION:- $(echo " ${build_recipe} " | grep hyrax | awk ' {print $1;}' | sed " s/hyrax-//g" )}
3742 OLFS_VERSION=${OLFS_VERSION:- $(echo " ${build_recipe} " | grep olfs | sed " s/olfs-//g" | awk ' {print $1;}' )}
@@ -54,36 +59,82 @@ function read_build_recipe() {
5459 TEST_DEPLOYMENT=" $td_value "
5560 fi
5661 fi
62+
63+
64+ if test " $DOCKER_NAME " == " ngap"
65+ then
66+ # ##############################################################################################
67+ # For the ngap distribution we make special SNAPSHOT_IMAGE_TAG and BUILD_VERSION_TAG values
68+ # because the ngap product gets tagged differently than the products from our other repos.
69+ # Specifically, we use the opendap/hyrax repo since the ngap product is just a specialization
70+ # of hyrax, at least for now. So we use the opendap/hyrax project identifier, and we add the
71+ # $DOCKER_NAME ("ngap" in this case) to the image tag:
72+ # Examples:
73+ # opendap/hyrax:ngap-snapshot
74+ # opendap/hyrax:ngap-snapshot-el8
75+ # opendap/hyrax:ngap-1.17.1-846
76+ # opendap/hyrax:ngap-1.17.1-846-el8
77+ # opendap/hyrax:ngap-snapshot-el8-test-deploy
78+ # opendap/hyrax:ngap--1.17.1-846-el8-test-deploy
79+ # We set (and replace) these values here, in the stage, so that they can be accessed by the
80+ # travis/deploy_to_docker_hub.sh script used by the Travis deploy operation below.
81+ SNAPSHOT_IMAGE_TAG=" ${SNAPSHOT_IMAGE_TAG:- " opendap/hyrax:$DOCKER_NAME -snapshot$TEST_DEPLOYMENT " } "
82+ BUILD_VERSION_TAG=" ${BUILD_VERSION_TAG:- " opendap/hyrax:$DOCKER_NAME -$HYRAX_VERSION$TEST_DEPLOYMENT " } "
83+
84+ OS_SNAPSHOT_IMAGE_TAG=" ${OS_SNAPSHOT_IMAGE_TAG:- " opendap/hyrax:$DOCKER_NAME -snapshot-$TARGET_OS$TEST_DEPLOYMENT " } "
85+ OS_BUILD_VERSION_TAG=" ${OS_BUILD_VERSION_TAG:- " opendap/hyrax:$DOCKER_NAME -$HYRAX_VERSION -$TARGET_OS$TEST_DEPLOYMENT " } "
86+ else
87+ # ##############################################################################################
88+ # This is the nominal tagging scheme
89+ #
90+
91+ SNAPSHOT_IMAGE_TAG=" ${SNAPSHOT_IMAGE_TAG:- " opendap/$DOCKER_NAME :snapshot$TEST_DEPLOYMENT " } "
92+ BUILD_VERSION_TAG=" ${BUILD_VERSION_TAG:- " opendap/$DOCKER_NAME :$HYRAX_VERSION$TEST_DEPLOYMENT " } "
93+
94+ OS_SNAPSHOT_IMAGE_TAG=" ${OS_SNAPSHOT_IMAGE_TAG:- " opendap/$DOCKER_NAME :snapshot-$TARGET_OS$TEST_DEPLOYMENT " } "
95+ OS_BUILD_VERSION_TAG=" ${OS_BUILD_VERSION_TAG:- " opendap/$DOCKER_NAME :$HYRAX_VERSION -$TARGET_OS$TEST_DEPLOYMENT " } "
96+ fi
97+
5798}
5899read_build_recipe " ${BUILD_RECIPE_FILE} "
59100
60101
61- export SNAPSHOT_IMAGE_TAG=${SNAPSHOT_IMAGE_TAG:- " opendap/${DOCKER_NAME} :snapshot" }
62- export BUILD_VERSION_TAG=${BUILD_VERSION_TAG:- " opendap/${DOCKER_NAME} :${HYRAX_VERSION} " }
102+
103+
104+
105+
63106
64107export RELEASE_HOST=${RELEASE_HOST:- " https://www.opendap.org" }
65108
66109
67110function show_version(){
68111 loggy " ${HR} "
69- loggy " RELEASE_DATE: ${RELEASE_DATE} "
70- loggy " HYRAX_VERSION: ${HYRAX_VERSION} "
71- loggy " OLFS_VERSION: ${OLFS_VERSION} "
72- loggy " BES_VERSION: ${BES_VERSION} "
73- loggy " BUILD_DMRPP_VERSION: ${BUILD_DMRPP_VERSION} "
74- loggy " LIBDAP_VERSION: ${LIBDAP_VERSION} "
75- loggy " DOCKER_NAME: ${DOCKER_NAME} "
76- loggy " BUILD_VERSION_TAG: ${BUILD_VERSION_TAG} "
77- loggy " SNAPSHOT_IMAGE_TAG: ${SNAPSHOT_IMAGE_TAG} "
78- loggy " S3_BUILD_BUCKET: ${S3_BUILD_BUCKET} "
79- loggy " SLEEP_INTERVAL: ${SLEEP_INTERVAL} "
112+ loggy " RELEASE_DATE: ${RELEASE_DATE} "
113+ loggy " TARGET_OS: $TARGET_OS "
114+ loggy " DOCKER_DIR: $DOCKER_DIR "
115+ loggy " DOCKER_NAME: $DOCKER_NAME "
116+ loggy " HYRAX_VERSION: ${HYRAX_VERSION} "
117+ loggy " OLFS_VERSION: ${OLFS_VERSION} "
118+ loggy " BES_VERSION: ${BES_VERSION} "
119+ loggy " BUILD_DMRPP_VERSION: ${BUILD_DMRPP_VERSION} "
120+ loggy " LIBDAP_VERSION: ${LIBDAP_VERSION} "
121+ loggy " DOCKER_NAME: ${DOCKER_NAME} "
122+ loggy " "
123+ loggy " BUILD_VERSION_TAG: '$BUILD_VERSION_TAG '"
124+ loggy " OS_BUILD_VERSION_TAG: '$OS_BUILD_VERSION_TAG '"
125+ loggy " "
126+ loggy " SNAPSHOT_IMAGE_TAG: '$SNAPSHOT_IMAGE_TAG '"
127+ loggy " OS_SNAPSHOT_IMAGE_TAG: '$OS_SNAPSHOT_IMAGE_TAG '"
128+ loggy " "
129+ loggy " S3_BUILD_BUCKET: ${S3_BUILD_BUCKET} "
130+ loggy " SLEEP_INTERVAL: ${SLEEP_INTERVAL} "
80131 loggy " "
81- loggy " TOMCAT_MAJOR_VERSION: ${TOMCAT_MAJOR_VERSION} "
132+ loggy " TOMCAT_MAJOR_VERSION: ${TOMCAT_MAJOR_VERSION} "
82133 loggy " TOMCAT_VERSION: ${TOMCAT_VERSION} "
83134 loggy " "
84- loggy " NO_CACHE: ${NO_CACHE} "
135+ loggy " NO_CACHE: ${NO_CACHE} "
85136 loggy " "
86- loggy " TEST_DEPLOYMENT: '$TEST_DEPLOYMENT '"
137+ loggy " TEST_DEPLOYMENT: '$TEST_DEPLOYMENT '"
87138 loggy " "
88139}
89140
@@ -615,15 +666,15 @@ function s3_get_build_dmrpp_distro() {
615666
616667# ###############################################################################
617668#
618- # woo_get_olfs_distro () - Get the rpm and war files need for a Hyrax installation
669+ # curl_get_olfs_distro () - Get the rpm and war files need for a Hyrax installation
619670# from the identified S3 bucket.
620671# $1 - The AWS S3 bucket from which to pull the Hyrax components
621672# $2 - The directory into which to place the Hyrax components.
622673# $3 - The olfs version number ##.##.##-##
623674#
624- function woo_get_olfs_distro () {
675+ function curl_get_olfs_distro () {
625676 loggy " ${HR} "
626- loggy " TASK: woo_get_olfs_distro ()"
677+ loggy " TASK: curl_get_olfs_distro ()"
627678 local target_dir=" ${1} "
628679 loggy " target_dir: ${target_dir} "
629680 local olfs_version=" ${2} "
@@ -770,7 +821,7 @@ function build_hyrax_ncwms_docker() {
770821 loggy " build_hyrax_ncwms_docker()"
771822 loggy " "
772823 export DOCKER_NAME=" hyrax"
773- source ./build-rh8
824+ source ./build-el8
774825 export SNAPSHOT_IMAGE_TAG=" opendap/${DOCKER_NAME} _ncwms:rh8-snapshot"
775826 export BUILD_VERSION_TAG=" opendap/${DOCKER_NAME} _ncwms:rh8-${HYRAX_VERSION} "
776827 export TOMCAT_VERSION=$( get_latest_tomcat_version_number " ${TOMCAT_MAJOR_VERSION} " )
0 commit comments