Commit Graph
56 Commits
Author SHA1 Message Date
alec.turner 886b364b55 add updated 'start_up.sh' script for streamline-emr docker image
This modified script replaces adds a wait condition on startup before attempting
to interact with the database. This is done with 'mariadb-admin ping' run in a
loop at 1s intervals, ultimately timing out after 30s if unsuccessful. Other
minor updates to the script print additional info the docker logs during
startup.
2025-04-02 15:44:52 -07:00
admin 72d3c83455 updated .gitignore 2025-04-01 16:22:08 +03:00
admin 91a4b10a5a removed streamline-src dir, modified compose file, updated Dockerfile.* files 2025-04-01 15:37:46 +03:00
admin fd783b5003 edit corntab to run every hour 2025-03-31 17:03:17 +03:00
admin aa42e72127 move Dockerfile 2025-03-31 16:36:26 +03:00
admin ce3c354927 cleanup compose file 2025-03-31 16:35:47 +03:00
admin 7c00fb0171 remove forward slashes 2025-03-31 16:35:10 +03:00
admin b1d2cbbcbf decode json string from cache to request body 2025-03-31 16:34:43 +03:00
admin 9f7196d146 statistics docker dir cleanup 2025-03-31 16:04:19 +03:00
admin 2dc2287379 resolved conflicts 2025-03-31 03:46:05 +03:00
admin b0a69145d7 cleanups 2025-03-30 14:37:01 +03:00
admin 6557a951ba statistics docker setup, cleanup on sync script, added supervisord 2025-03-30 14:36:20 +03:00
admin b0c09ade50 streamline-emr v2.3 custom sync service scripts, docker-compose updates 2025-03-26 19:18:23 +03:00
admin 22473c8f3f cleanup & setting up sync update 2025-03-24 17:19:51 +03:00
admin c7fdd2968a Merge branch 'develop' into 'main'
Release 2.1

See merge request signalytic/client-external/streamline/streamline-emr!11
v2.3-rc1 v2.1
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
alec.turner 9f733bb6c9 add custom install script to clear v1 data
The script `install.sh` largely copies the template from the hosted-app-utils
project, with some key changes:
1. replace template parameters (`{{VAR}}`) with hard-coded values
2. define variables for org, app, install root, etc
3. if old version detected, remove data folder before installing update

The modified script will:
1. delete v1 data
2. update normally when v2 or newer installations are present
v2-rc1
2025-01-15 09:13:49 -08:00
alec.turner 5390207ec1 revert org name and update image url
org name is reverted to 'streamline' from 'streamlinehealth'
2025-01-15 08:54:13 -08:00
adminandalec.turner 4b569f81b0 updated streamline-setup v2 2025-01-15 08:53:49 -08:00
alec.turner a2ce9248f0 Merge branch 'develop' into 'main'
Release 1

See merge request signalytic/client-external/streamline/streamline-emr!6
v1
2024-12-14 00:37:02 +00:00
alec.turner bf78a493bd Merge branch 'simplified-app-mgmt' into 'develop'
reorganize app packaging and prep for production

See merge request signalytic/client-external/streamline/streamline-emr!5
v1-rc6
2024-12-14 00:11:42 +00:00
alec.turner c8c4ac7298 disable dbsync and prep for production
- bump version to 1.0
- disable dbsync
- add reference app.conf file to aid in quickly re-enabling dbsync
- upgrade hosted-app-utils to develop
2024-12-13 16:01:08 -08:00
alec.turner d60c85fa14 updated readme to match latest usage 2024-10-28 15:17:52 -07:00
alec.turner abf1c11d47 update hosted-app-utils to use simplified package management 2024-10-18 14:42:40 -07:00
admin 49f4681a74 Merge branch 'hosted-app-utils' into 'develop'
Update docker images to modify mysql configuration

See merge request signalytic/client-external/streamline/streamline-emr!3
2024-07-30 16:00:39 +00:00
alec.turner 5222a67855 Integrate with hosted-app-utils
Strip down this repo and allow the hosted-app-utils `package` script to
auto-generate the package.
2024-07-30 08:48:18 -07:00
alec.turner a47c7b3d98 Fix wkhtmltopdf bugs
The wkhtmltopdf library does not work with the latest version of alpine. To
workaround this, a known working image based on an older alpine image is pulled
in and relevant libraries copied to the target image.

The `snappy` package required a few updates to support this, including setting
the wkhtmltopdf binary path explicitly and to enable access to local files
(disabled by default).
v1-rc5
2024-05-01 17:03:14 -07:00
alec.turner 5e1cb0d8b4 update db init data to fix triage bug
The table `gender_based_violences` was missing a `triage_id` field, causing an
exception to occur in some cases when selecting the triage button. This change
alters the schema of the table to ensure the column is always present.
v1-rc4
2024-04-25 15:12:52 -07:00
alec.turner d26252fc11 update dockerfiles based on latest streamline image
The latest images incorporate all changes previously added by the dockerfiles.
The arm image however is still missing/unreliable from the registry and must be
built independently.
v1-rc3
2024-04-25 10:04:06 -07:00
alec.turner 6896f639bd bugfix to monitor script to correct resource usage queries
Two bugs are fixed by this commit. First, a typo in the format string used write
resource usage data to the systemlog caused the systemlog to (correctly) reject
the string as invalid json. The second fix is to handle a case where a .env file
is present, but does not define the APP_CONTAINER variable. In this case the
container name is left empty. This is not an immediate issue, but would become
problematic in the future if additional containers were to be added.
v1-rc2
2024-04-11 11:46:23 -07:00
alec.turner e35fc56163 Explicitly set version hash to use 7 characters
While 7 is the default number of characters used to abbreviate a commit hash,
this is not (by default) constant and different instances of the same repo may
generate different version strings as a result. This commit sets this length
explicitly to 7 in both package.sh and build-image scripts.
2024-04-11 11:43:26 -07:00
alec.turner 4a89356390 Import latest app updates from streamline
An updated set of source files and initialization was provided by streamline to
address issues observed during initial testing. These files have been updated in
order to generate a new set of app images.
2024-04-11 11:16:51 -07:00
alec.turner cb4c6b4c1a remove unnecessary check for setup process
autoheal was copied from kenya-emr and was still checking for a setup.pid file
and process. This won't do any harm but also does not add value.
2024-04-03 16:28:04 -07:00
alec.turner 9cbefc841f Simplify application management and align with other docker applications
The notion of application "instances" is dropped in favor of a simpler,
single-instance approach. Default values are provided for all configuration
variables so allow the app to run without additional manual configuration.

A health check and auto-heal script are added to automatically restart the
application in case it becomes unavailable during operation.
2024-03-25 09:34:34 -07:00
alec.turner 6c59b1ab76 bugfixes and cleanup from kenyaemr
- fix monitor script
- fix to allow docker build-image script to run from outside folder
- split instance configuration out of start script
v1-rc1
2024-03-14 16:27:56 -07:00
alec.turner 50cb23a4c7 Packaging improvements
- compress images with xz by default (and decompress on install)
- add help menu and command line argument parsing to package.sh
- display packaging status if `pv` command available
2024-03-11 16:29:59 -07:00
alec.turner a424394109 Build modified streamline images
The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
2024-03-10 16:17:50 -07:00
alec.turner 2ffc3c408a update readme file with notes on building docker images 2024-03-10 14:59:39 -07:00
alec.turner 63ba4d29c8 Update docker images to modify mysql configuration
Dockerfiles are updated with two key changes:
- use streamline's official images as a base
- replace two files related to mysql configuration

A README.md file is added to the docker folder which details the changes, but
the key difference is to limit binary logs to only the `streamline` database.
This prevents additional system databases from being included, which the
database sync tools do not (yet) support.

An unrelated bugfix corrects the docker-compose image tag, specifying 'latest'
instead of a previously hard-coded version.
2024-03-10 14:51:17 -07:00
alec.turner e88aef18f4 Add image utils and bugfixes from kenya-emr 2024-03-09 14:07:45 -08:00
alec.turner a4bb4f5cf6 Merge branch 'app-packaging' into 'develop'
packaging and installation scripts

Closes #2

See merge request signalytic/client-external/streamline/streamline-emr!1
2024-03-08 23:49:12 +00:00
alec.turner 6a4ab99506 fix minor typos in readme 2024-03-08 15:38:53 -08:00
alec.turner 5072872bdb update readme file to clarify installation, configuration process 2024-03-08 15:32:19 -08:00
alec.turner 41a04e5b2d ensure stop is always called at the end of entry script
interrupts were not properly handled by the entry script, and could leave
containers active. This is fixed by running stop in a cleanup function, called
on exit.
2024-03-08 12:53:35 -08:00
alec.turner 0ef5029931 add version file to package and print version on start 2024-03-08 12:39:18 -08:00
alec.turner a2a9395e39 Make image packaging and installation optional
Eventually, images should not be transferred as part of the application package,
using a more efficient mechanism instead. Other cases may already exist where
packaging without the image is preferrable.

When the `PACKAGE_IMAGES` variable is not set to 1 (default: 1), images will not
be included in the package. The installation script now handles the case where
the `images` folder is missing altogether.
2024-03-08 12:29:40 -08:00
alec.turner 04cbf6b1af Reimplement scripts to support multiple app instances
An additional config file `instances.conf` is added to define instance names and
port numbers. The existing `app.conf` was also modified to include an
`instances` field and to move node id and location under this new object. A
`.env` file is used to manage configuration for each instance.

Additional scripts are added: `start`, `stop`, `monitor` - see docs for
description. The main entry script is also modified such that it will run until
any service stops, then brings down the remaining services and exits.
2024-03-08 12:29:37 -08:00