Compare commits

..
10 Commits
Author SHA1 Message Date
Patrick Gregorio 70dbd3c67f Specify service images from the compose file 2025-03-24 15:19:19 -06:00
Patrick Gregorio 0eef8850b6 Clean up compose file definitions 2025-03-21 15:49:13 -06:00
Patrick Gregorio ece5b499f8 Added the statistics service to the stack 2025-03-21 13:39:25 -06:00
alec.turner 204141eca8 Merge branch 'reset-data-for-2.1-except-strltest' into 'release-2.1-omit-strltest'
reset data for 2.1 installations unless running on STRLTEST

See merge request signalytic/client-external/streamline/streamline-emr!12
2025-01-24 18:00:36 +00:00
alec.turner 6d26a3abcf reset data for 2.1 installations unless running on STRLTEST
A second condition is checked for when determining whether demo data must be
reset; if version '2.1' of the app is installed and the target is not node
STRLTEST, data will be reset. Note that the version must be exactly '2.1', not
'2.1*'. The updated version will be '2.1.1'

This commit is added to handle an issue with a previously deployed version where
the incorrect install script was included. Node STRLTEST was manually fixed and
new data added to the database, leading to the need for this exception.
2025-01-23 09:49:35 -08:00
admin c7fdd2968a Merge branch 'develop' into 'main'
Release 2.1

See merge request signalytic/client-external/streamline/streamline-emr!11
2025-01-23 08:41:47 +00:00
alec.turner 1348cc95ae Merge branch 'drop-demo-data-from-v2' into 'develop'
drop demo data from v2

See merge request signalytic/client-external/streamline/streamline-emr!9
2025-01-22 16:13:41 +00:00
alec.turner 4e9b4e9331 bump image to v2.1
A new v2.1 image is available in the gitlab registry - the config file is
updated accordingly.
2025-01-22 08:11:18 -08:00
alec.turner 733b01c244 update version to 2.1 and add reset condition for v2.0
v2.0 was built using a demo database that should not have been present. v2.1
uses the same application, but should start with a clean database. This change
bumps the version to 2.1 and resets the database if the currently installed
version is 1.* or 2.0.
2025-01-22 08:09:49 -08:00
admin ea343e472e Merge branch 'app-version-2' into 'main'
Release 2

See merge request signalytic/client-external/streamline/streamline-emr!8
2025-01-16 15:53:06 +00:00
4 changed files with 27 additions and 14 deletions
+2 -7
View File
@@ -1,13 +1,8 @@
{ {
"name": "streamline-emr", "name": "streamline-emr",
"org": "streamline", "org": "streamline",
"version": "2.0", "version": "2.1.1",
"platforms": [ "platforms": [
"linux/arm64" "linux/arm64"
], ]
"images": {
"linux/arm64": {
"registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/arm64:v2": "streamline-emr:latest"
}
}
} }
+9 -3
View File
@@ -25,6 +25,7 @@ fi
set -e set -e
NODEID=$(grep ^nodeID /etc/signalytic/identity 2>/dev/null | cut -d= -f2 | xargs)
APP_SLUG="streamline_emr" APP_SLUG="streamline_emr"
ORG_SLUG="streamline" ORG_SLUG="streamline"
INSTALL_ROOT="/var/signalytic/clientapps/${ORG_SLUG}/${APP_SLUG}" INSTALL_ROOT="/var/signalytic/clientapps/${ORG_SLUG}/${APP_SLUG}"
@@ -36,9 +37,14 @@ if [ -f ${INSTALL_ROOT}/stop ]; then
${INSTALL_ROOT}/stop ${INSTALL_ROOT}/stop
fi fi
# reset data for any v1 installations # reset data for any version '1.*' or '2.0*' installations
if grep -q "^1." ${VERSION_FILE}; then if grep -q "^1." ${VERSION_FILE} || grep -q "^2.0" ${VERSION_FILE}; then
echo "v1 installation detected - resetting data" echo "demo installation detected (v$(cat ${VERSION_FILE})) - resetting data"
rm -rf ${DATA_ROOT}
# reset data for version '2.1' installations, unless running on node STRLTEST
elif [ "${NODEID}" != "STRLTEST" ] && grep -q "^2.1$" ${VERSION_FILE}; then
echo "demo installation detected (v2.1) - resetting data"
rm -rf ${DATA_ROOT} rm -rf ${DATA_ROOT}
fi fi
+15 -3
View File
@@ -1,12 +1,13 @@
services: services:
streamline-emr: streamline-emr:
image: ${APP_IMAGE:-streamline-emr:latest} image: registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/arm64:v2.1
container_name: ${APP_CONTAINER:-streamline-emr} container_name: streamline-emr
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- "${DATA_DIR:-./data}:/var/lib/mysql" - "${DATA_DIR:-./data}:/var/lib/mysql"
ports: ports:
- "${APP_PORT:-3000}:80" - "${APP_PORT:-3000}:80"
command: ["sh", "-c", "composer install && php artisan migrate"]
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"] test: ["CMD", "curl", "-f", "http://localhost:80"]
timeout: 30s timeout: 30s
@@ -14,4 +15,15 @@ services:
start_interval: 10s start_interval: 10s
interval: 30s interval: 30s
retries: 5 retries: 5
networks:
- streamline
statistics:
image: registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/statistics/arm64:2.2
container_name: statistics
restart: unless-stopped
depends_on:
- streamline-emr
networks:
- streamline
networks:
streamline: