fix(jovay/aldaba): replace VERSION subpath mount with startup cp
Docker 28.5.x fails container create when a volume subpath targets a path that exists as a file in the image. Copy VERSION from the conf volume mount instead of subpath-mounting onto /opt/l2_deploy/bin/VERSION. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -105,6 +105,7 @@ services:
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
cp /opt/l2_deploy/conf/VERSION /opt/l2_deploy/bin/VERSION
|
||||
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 &
|
||||
@@ -120,11 +121,6 @@ services:
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_CONF:-jovay-mainnet-aldaba-pruned_conf}:/opt/l2_deploy/conf
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_DATA:-jovay-mainnet-aldaba-pruned}:/opt/l2_deploy/light/data
|
||||
- ${JOVAY_MAINNET_ALDABA_PRUNED_LOG:-jovay-mainnet-aldaba-pruned_log}:/opt/l2_deploy/light/log
|
||||
- type: volume
|
||||
source: ${JOVAY_MAINNET_ALDABA_PRUNED_CONF:-jovay-mainnet-aldaba-pruned_conf}
|
||||
target: /opt/l2_deploy/bin/VERSION
|
||||
volume:
|
||||
subpath: VERSION
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
|
||||
@@ -105,6 +105,7 @@ services:
|
||||
command:
|
||||
- |
|
||||
set -e
|
||||
cp /opt/l2_deploy/conf/VERSION /opt/l2_deploy/bin/VERSION
|
||||
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 &
|
||||
@@ -120,11 +121,6 @@ services:
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_CONF:-jovay-sepolia-aldaba-pruned_conf}:/opt/l2_deploy/conf
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_DATA:-jovay-sepolia-aldaba-pruned}:/opt/l2_deploy/light/data
|
||||
- ${JOVAY_SEPOLIA_ALDABA_PRUNED_LOG:-jovay-sepolia-aldaba-pruned_log}:/opt/l2_deploy/light/log
|
||||
- type: volume
|
||||
source: ${JOVAY_SEPOLIA_ALDABA_PRUNED_CONF:-jovay-sepolia-aldaba-pruned_conf}
|
||||
target: /opt/l2_deploy/bin/VERSION
|
||||
volume:
|
||||
subpath: VERSION
|
||||
- /slowdisk:/slowdisk
|
||||
logging: *logging-defaults
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user