Implement basic packaging/install/entry scripts

The packaging script will create a new tar.bz2 archive containing an install
script, a set of docker images, and a root folder with files to be installed.
The root folder includes a systemd service, a docker compose file, an entry
script, and a template config file.

On installation docker images are loaded onto the target system, install files
are copied, then systemd services are installed.
This commit is contained in:
2024-02-28 16:52:07 -08:00
parent 9d20658851
commit ca3d2f5540
8 changed files with 196 additions and 89 deletions
@@ -0,0 +1,9 @@
version: '3.9'
services:
streamline-emr:
image: registry.gitlab.com/signalytic/client-external/streamline/streamline-emr:2.0
volumes:
- '/var/signalytic/clientapps/streamline/streamline-emr/data:/var/lib/mysql'
ports:
- '3000:80'
- '6607:3306'
@@ -0,0 +1,5 @@
#!/bin/sh
cd "$(dirname "${BASH_SOURCE[0]}")"
mkdir -p data
docker compose up --force-recreate
docker compose down
@@ -0,0 +1,22 @@
{
"name": "Streamline EMR",
"database": {
"type": "mysql",
"version": "mariadb:15.1",
"name": "streamline",
"source": "streamline-emr",
"username": "",
"password": "",
"db_path": "/var/lib/mysql",
"logs_path": "/var/lib/mysql/logs",
"log_pattern": "bin.[0-9]*"
},
"blockgraph": {
"district": "",
"name": "",
"node": "",
"location": "",
"username": "",
"password": ""
}
}