mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-02 13:24:20 +01:00
(deploy) Use relative paths in mount scripts
This commit is contained in:
parent
1602a10fd0
commit
0b64e08e66
@ -3,6 +3,7 @@
|
||||
## next deploy
|
||||
|
||||
- Improved docker image building time
|
||||
- Use relative paths in mount scripts
|
||||
|
||||
## v5.4.4 2022 June 8
|
||||
|
||||
|
@ -20,11 +20,9 @@ config()
|
||||
add_mount()
|
||||
{
|
||||
if [[ ! $(yq eval ".services.$SERVICE.volumes.[] | select (. == \"*payment_schedules\")" docker-compose.yml) ]]; then
|
||||
# shellcheck disable=SC2016
|
||||
# we don't want to expand ${PWD}
|
||||
# change docker-compose.yml permissions for fix yq can't modify file issue
|
||||
chmod 666 docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes += [\"\${PWD}/payment_schedules:/usr/src/app/payment_schedules\"]" docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes += [\"\./payment_schedules:/usr/src/app/payment_schedules\"]" docker-compose.yml
|
||||
chmod 644 docker-compose.yml
|
||||
fi
|
||||
}
|
||||
|
@ -20,11 +20,9 @@ config()
|
||||
add_mount()
|
||||
{
|
||||
if [[ ! $(yq eval ".services.$SERVICE.volumes.[] | select (. == \"*proof_of_identity_files\")" docker-compose.yml) ]]; then
|
||||
# shellcheck disable=SC2016
|
||||
# we don't want to expand ${PWD}
|
||||
# change docker-compose.yml permissions for fix yq can't modify file issue
|
||||
chmod 666 docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes += [\"\${PWD}/proof_of_identity_files:/usr/src/app/proof_of_identity_files\"]" docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes += [\"\./proof_of_identity_files:/usr/src/app/proof_of_identity_files\"]" docker-compose.yml
|
||||
chmod 644 docker-compose.yml
|
||||
fi
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ config()
|
||||
change_mount()
|
||||
{
|
||||
if [[ $(yq eval ".services.$SERVICE.volumes.[] | select (. == \"*assets\")" docker-compose.yml) ]]; then
|
||||
yq -i eval ".services.$SERVICE.volumes.[] |= select(. == \"*assets\") |= \"\${PWD}/public/packs:/usr/src/app/public/packs\"" docker-compose.yml
|
||||
yq -i eval ".services.$SERVICE.volumes.[] |= select(. == \"*assets\") |= \"\./public/packs:/usr/src/app/public/packs\"" docker-compose.yml
|
||||
echo "Service volume was replaced for $SERVICE: /assets changed to /packs"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user