Skip to content

Commit 14289a3

Browse files
committed
copy conf inside container
1 parent 10766cb commit 14289a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker_install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ if [ ! -f "$install_conf" ]; then
190190
exit 1
191191
fi
192192

193+
repo_root="$(pwd)"
194+
if [[ "$install_conf" = /* ]] && [[ "$install_conf" != "$repo_root/"* ]]; then
195+
install_conf_copy="conf/docker_runtime_settings.txt"
196+
echo "Copying $install_conf into repository as $install_conf_copy for Docker build/runtime."
197+
cp "$install_conf" "$install_conf_copy"
198+
install_conf="$install_conf_copy"
199+
fi
200+
193201
service_exists() {
194202
docker compose -f "$compose_file" ps --services 2>/dev/null | grep -Fxq "$1"
195203
}

0 commit comments

Comments
 (0)