Automate Taler merchant and bank app start after container boot.

Containers only run sleep infinity; host ensure-taler-apps plus user
systemd units start postgres, httpd, libeufin, and auto-confirm.
This commit is contained in:
Hernâni Marques 2026-07-16 19:14:12 +02:00
parent 1aa4d1bab8
commit bd5272ebac
7 changed files with 246 additions and 0 deletions

View file

@ -0,0 +1,4 @@
[Unit]
# Paivana needs merchant private API — start after merchant apps, not only container shell
After=taler-merchant-apps.service container-taler-hacktivism.service
Wants=taler-merchant-apps.service

View file

@ -0,0 +1,3 @@
[Unit]
Wants=taler-bank-apps.service
Before=taler-bank-apps.service

View file

@ -0,0 +1,4 @@
[Unit]
# Pull in in-container app start after the empty sleep infinity shell is up
Wants=taler-merchant-apps.service
Before=taler-merchant-apps.service

View file

@ -0,0 +1,14 @@
[Unit]
Description=Start Taler bank apps inside taler-hacktivism-bank
Documentation=file:%h/src/koopa/koopa-admin-log/scripts/taler-shared/ensure-taler-apps.sh
After=network-online.target container-taler-hacktivism-bank.service
Wants=network-online.target container-taler-hacktivism-bank.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStartSec=300
ExecStart=%h/.local/bin/ensure-taler-apps.sh bank
[Install]
WantedBy=default.target

View file

@ -0,0 +1,15 @@
[Unit]
Description=Start Taler merchant apps inside taler-hacktivism
Documentation=file:%h/src/koopa/koopa-admin-log/scripts/taler-shared/ensure-taler-apps.sh
After=network-online.target container-taler-hacktivism.service
Wants=network-online.target container-taler-hacktivism.service
[Service]
Type=oneshot
RemainAfterExit=yes
# Merchant start_base + helpers can take a while after cold boot
TimeoutStartSec=300
ExecStart=%h/.local/bin/ensure-taler-apps.sh merchant
[Install]
WantedBy=default.target