Compare commits

..
Author SHA1 Message Date
admin a6ef054215 updated package script 2026-05-06 12:36:50 +03:00
admin 62c8d2714b added clientappctl for app-dev-updates 2026-05-06 12:36:31 +03:00
5 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "streamline-emr",
"org": "streamline",
"version": "3.4",
"version": "3.1",
"platforms": [
"linux/arm64"
]
+1 -1
View File
@@ -1 +1 @@
FROM streamline:signalytic_latest
FROM streamlinehealth/streamline:signalytic
+9 -7
View File
@@ -1,6 +1,6 @@
#! /usr/bin/env python3
import sys, os, argparse, json, shutil, subprocess, traceback
import sys, os, argparse, json, shutil, tempfile, subprocess, traceback
def run_script(script_path: str) -> int:
"""
@@ -45,8 +45,7 @@ def handle_start(src_dir, install_path):
shutil.copytree(src_dir, install_path, dirs_exist_ok=True)
# start application
if run_script(f'{install_path}/start') != 0:
return 1
run_script(f'{install_path}/start')
return 0
except Exception as ex:
@@ -68,8 +67,7 @@ def handle_stop(install_path: str):
try:
# stop application
if run_script(f'{install_path}/stop') != 0:
return 1
run_script(f'{install_path}/stop')
return 0
except subprocess.CalledProcessError as e:
@@ -120,7 +118,7 @@ def uninstall_app(args: argparse.Namespace, install_path) -> int:
subprocess.check_output(stop_path)
# reset vols, networks
subprocess.check_output(['docker', 'compose', '-f', f'{install_path}/docker-compose.yml', 'down', '-v'])
subprocess.check_output(['docker', 'compose', f'-f {install_path}/docker-compose.yml', 'down', '-v'])
if os.path.exists(install_path):
shutil.rmtree(install_path)
@@ -131,7 +129,11 @@ def uninstall_app(args: argparse.Namespace, install_path) -> int:
return rval
# script constants
working_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
utils_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
temp_dir = tempfile.mkdtemp()
build_dir = os.path.join(temp_dir, 'build')
staging_dir = os.path.join(temp_dir, 'staging')
working_dir = working_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
src_path = os.path.join(working_dir, 'src')
CONFIG_JSON = os.path.join(working_dir, 'config.json')
Regular → Executable
+1 -1
View File
@@ -1,6 +1,6 @@
services:
streamline-emr:
image: registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/streamline-emr/arm64:3.4
image: registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/streamline-emr/arm64:3.1
container_name: streamline-emr
restart: unless-stopped
volumes: