Skip to content
Snippets Groups Projects
Commit eb96666c authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Improved parameter processing in docker_entrypoint.sh script.

parent 71177dd2
No related branches found
No related tags found
2 merge requests!585Docker support for HAF Hivemind deployment,!584Changes to be delivered to master as 1.27 release
......@@ -9,7 +9,7 @@ cleanup () {
python_pid=$(pidof 'python3')
echo "python_pid: $python_pid"
kill -INT $python_pid
sudo -n kill -INT $python_pid
echo "Waiting for hivemind finish..."
tail --pid=$python_pid -f /dev/null || true
......@@ -46,7 +46,7 @@ pushd /home/hivemind/app
echo "Attempting to start Hivemind process..."
sudo -HEnu hivemind /bin/bash <<EOF
source /home/hivemind/.hivemind-venv/bin/activate
hive "${HIVEMIND_ARGS[@]}"
hive "${HIVEMIND_ARGS[@]}" --database-url="${POSTGRES_URL}"
EOF
echo "Hivemind process finished execution: $?"
} &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment