add version file to package and print version on start

This commit is contained in:
2024-03-08 12:39:18 -08:00
parent a2a9395e39
commit 0ef5029931
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -81,6 +81,7 @@ for platform in "linux/amd64" "linux/arm64"; do
mkdir -p ${IMAGES_DIR}
cp ${PROJECT_ROOT}/install.sh ${PACKAGE_ROOT}/
cp -a ${PROJECT_ROOT}/root ${PACKAGE_ROOT}/
echo "${VERSION_NAME}" > ${PACKAGE_ROOT}/root/var/signalytic/clientapps/streamline/streamline-emr/version
if [ "${PACKAGE_IMAGES}" = "1" ]; then
# add images
@@ -6,8 +6,13 @@ CONF_FILE=${LOCATION}/instances.conf
INSTANCES_DIR=${LOCATION}/instances
COMPOSE_FILE=${LOCATION}/docker-compose.yml
ENV_TEMPLATE=${LOCATION}/template.env
VERSION_FILE=${LOCATION}/version
echo "starting all instances"
version=$(head -n 1 ${VERSION_FILE} 2>/dev/null)
if [ $? -ne 0 ];then
version="unknown version"
fi
echo "Starting Streamline EMR: $version"
if [ ! -f "${CONF_FILE}" ]; then
echo "missing conf file: ${CONF_FILE}"