jovay: tail aldaba/cubenet logs to docker logs via tini+bash wrapper
The aldaba_light binary writes sync and p2p logs only to rotating files under /opt/l2_deploy/light/log/; wrap entry.sh so tail -n0 -F streams new lines to stdout while preserving file logging and tini PID-1 semantics. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -101,6 +101,14 @@ services:
|
||||
- ADVERTISE_NODE_PORT=12008
|
||||
- EXTERNAL_CLB_PRE_EXPOSERPC_URL=noise_tcp://47.83.131.74:52398?842016e6eb94da561b1b4c856e08bf71cd70c05ea847e934b8be1d5a74a979f8;noise_tcp://47.83.131.74:52399?ce08efde90a7970d18dd6763fdc68d19a24084fd7c8cf67a68a19e943b30c5e3
|
||||
- SEQUENCER_ADVERTISE_NODE_URL=alb-cnjrn9zqms3o5flehu.cn-hongkong.alb.aliyuncsslbintl.com:80
|
||||
entrypoint: [/tini, --, /bin/bash, -c]
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
mkdir -p /opt/l2_deploy/light/log
|
||||
touch /opt/l2_deploy/light/log/aldaba.log /opt/l2_deploy/light/log/cubenet.log
|
||||
tail -n0 -F /opt/l2_deploy/light/log/aldaba.log /opt/l2_deploy/light/log/cubenet.log &
|
||||
exec /opt/entry.sh
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
|
||||
@@ -101,6 +101,14 @@ services:
|
||||
- ADVERTISE_NODE_PORT=13442
|
||||
- EXTERNAL_CLB_PRE_EXPOSERPC_URL=noise_tcp://43.106.17.221:52399?2d655725a449ef9f5f1b048d596736c0e4aaaac3fd9b6bd3f7eef5dee8517d7d;noise_tcp://43.106.17.221:52398?c9664991ff25fd390f10d29c1e024594067f4e00ef470388e89f29bd9a403d23
|
||||
- SEQUENCER_ADVERTISE_NODE_URL=alb-ism8q21lfjeen07hq3.ap-southeast-1.alb.aliyuncsslbintl.com:80
|
||||
entrypoint: [/tini, --, /bin/bash, -c]
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
mkdir -p /opt/l2_deploy/light/log
|
||||
touch /opt/l2_deploy/light/log/aldaba.log /opt/l2_deploy/light/log/cubenet.log
|
||||
tail -n0 -F /opt/l2_deploy/light/log/aldaba.log /opt/l2_deploy/light/log/cubenet.log &
|
||||
exec /opt/entry.sh
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user