mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
add version file to package and print version on start
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user