Compare commits

...
Author SHA1 Message Date
Duo Developerandadmin b9d8c82f19 Remove unused temp dir variables that leaked on every invocation
utils_dir, temp_dir, build_dir, and staging_dir were computed at
module level but never referenced. tempfile.mkdtemp() ran
unconditionally on every invocation (including --help and
argument-parse errors), leaking an empty temp directory on disk
each time. Remove all four variables and the now-unused tempfile
import.
2026-08-28 09:51:24 +00:00
adminandGitLab Duo d2a4558a39 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: GitLab Duo <gitlab-duo@gitlab.com>
2026-08-28 09:48:30 +00:00
adminandGitLab Duo 605702f19f Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: GitLab Duo <gitlab-duo@gitlab.com>
2026-08-28 09:45:55 +00:00
adminandGitLab Duo d04fd97791 Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: GitLab Duo <gitlab-duo@gitlab.com>
2026-08-28 09:45:28 +00:00
adminandGitLab Duo d8da3f11eb Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: GitLab Duo <gitlab-duo@gitlab.com>
2026-08-28 09:42:19 +00:00
admin 9f5573b5c9 Merge branch 'ft-3.4' into 'develop'
StreamlinEMR v3.4

See merge request signalytic/client-external/streamline/streamline-emr!27
2026-08-28 09:12:43 +00:00
admin b9c59fede7 - streamline-emr printing bugfixes
- updated version
2026-08-28 11:34:11 +03:00
3 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "streamline-emr",
"org": "streamline",
"version": "3.3",
"version": "3.4",
"platforms": [
"linux/arm64"
]
+7 -9
View File
@@ -1,6 +1,6 @@
#! /usr/bin/env python3
import sys, os, argparse, json, shutil, tempfile, subprocess, traceback
import sys, os, argparse, json, shutil, subprocess, traceback
def run_script(script_path: str) -> int:
"""
@@ -45,7 +45,8 @@ def handle_start(src_dir, install_path):
shutil.copytree(src_dir, install_path, dirs_exist_ok=True)
# start application
run_script(f'{install_path}/start')
if run_script(f'{install_path}/start') != 0:
return 1
return 0
except Exception as ex:
@@ -67,7 +68,8 @@ def handle_stop(install_path: str):
try:
# stop application
run_script(f'{install_path}/stop')
if run_script(f'{install_path}/stop') != 0:
return 1
return 0
except subprocess.CalledProcessError as e:
@@ -118,7 +120,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)
@@ -129,11 +131,7 @@ def uninstall_app(args: argparse.Namespace, install_path) -> int:
return rval
# script constants
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__)))
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')
+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.3
image: registry.gitlab.com/signalytic/client-external/streamline/streamline-emr/streamline-emr/arm64:3.4
container_name: streamline-emr
restart: unless-stopped
volumes: