[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sandcastle-ng] 08/39: sandcastle-ng: make run script show logs
From: |
gnunet |
Subject: |
[taler-sandcastle-ng] 08/39: sandcastle-ng: make run script show logs |
Date: |
Thu, 11 Jan 2024 13:59:41 +0100 |
This is an automated email from the git hooks/post-receive script.
devan-carpenter pushed a commit to branch master
in repository sandcastle-ng.
commit ad0577beba6f88825c5e3930f4e9ca2754f4d2d1
Author: Devan Carpenter <devan@taler.net>
AuthorDate: Thu Oct 26 11:15:03 2023 -0400
sandcastle-ng: make run script show logs
The container is executing "/sbin/init" which has no output, and
prevents us from seeing any logs via the container runtime log
interface.
This change to the run script makes the "podman run" command start the
container in the background, and then proceeds to "exec" journalctl in
the newly running container. Thus allowing us to see the relevant logs
from the system services.
---
sandcastle-run | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sandcastle-run b/sandcastle-run
index 1708674..ee98e18 100755
--- a/sandcastle-run
+++ b/sandcastle-run
@@ -37,7 +37,8 @@ fi
SETUP_NAME=${SANDCASTLE_SETUP_NAME:-demo}
-exec podman run \
+podman run \
+ -d \
-p=$SANDCASTLE_PORT_MERCHANT:$PORT_INTERNAL_MERCHANT \
-p=$SANDCASTLE_PORT_EXCHANGE:$PORT_INTERNAL_EXCHANGE \
-p=$SANDCASTLE_PORT_LIBEUFIN_BANK:$PORT_INTERNAL_LIBEUFIN_BANK \
@@ -54,3 +55,5 @@ exec podman run \
--entrypoint /sbin/init \
"$@" \
taler-base-all
+
+exec podman exec -it taler-sandcastle journalctl -f
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-sandcastle-ng] branch master created (now ef6df9c), gnunet, 2024/01/11
- [taler-sandcastle-ng] 04/39: sandcastle-ng: use apt instead of dpkg, gnunet, 2024/01/11
- [taler-sandcastle-ng] 03/39: sandcastle-ng: use full registry name for base, gnunet, 2024/01/11
- [taler-sandcastle-ng] 05/39: sandcastle-ng: bump version tags, gnunet, 2024/01/11
- [taler-sandcastle-ng] 16/39: sandcastle-ng: update settings to reflect implementation changes, gnunet, 2024/01/11
- [taler-sandcastle-ng] 02/39: sandcastle host unit, gnunet, 2024/01/11
- [taler-sandcastle-ng] 08/39: sandcastle-ng: make run script show logs,
gnunet <=
- [taler-sandcastle-ng] 14/39: sandcastle-ng: do not install recommended apt deps, gnunet, 2024/01/11
- [taler-sandcastle-ng] 01/39: import sandcastle-ng, gnunet, 2024/01/11
- [taler-sandcastle-ng] 39/39: sandcastle-ng: incremental tos generation, gnunet, 2024/01/11
- [taler-sandcastle-ng] 21/39: sandcastle: remove clashing currency config, gnunet, 2024/01/11
- [taler-sandcastle-ng] 15/39: sandcastle-ng: ensure apache2 is disabled, gnunet, 2024/01/11
- [taler-sandcastle-ng] 20/39: sandcastle: libeufin dbinit, gnunet, 2024/01/11
- [taler-sandcastle-ng] 06/39: sandcastle-ng: make run script print to console, gnunet, 2024/01/11
- [taler-sandcastle-ng] 25/39: sandcastle-ng: add support for config overrides, gnunet, 2024/01/11
- [taler-sandcastle-ng] 34/39: sandcastle-ng: do not lift terms dir, generated terms now live in /var/lib/taler, gnunet, 2024/01/11
- [taler-sandcastle-ng] 31/39: sandcastle-ng: setup admin account properly, gnunet, 2024/01/11