make the volume scripts ignore ephemeral volumes
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
BASEPATH="$(dirname "$0")"
|
||||
source $BASEPATH/.env
|
||||
source $BASEPATH/volume-utils.sh
|
||||
|
||||
IFS=':' read -ra parts <<< $COMPOSE_FILE
|
||||
|
||||
used_volumes=()
|
||||
|
||||
for part in "${parts[@]}"; do
|
||||
|
||||
# Convert YAML to JSON using yaml2json
|
||||
json=$(yaml2json "$BASEPATH/$part")
|
||||
|
||||
# Extract volumes using jq
|
||||
volumes=$(echo "$json" | jq -r '.volumes | keys[]' 2> /dev/null)
|
||||
volumes=$(get_volume_keys "$BASEPATH/$part")
|
||||
|
||||
# Convert volumes to an array
|
||||
prefix="rpc_"
|
||||
|
||||
Reference in New Issue
Block a user