Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ stopasgroup=true
stdout_logfile=%(ENV_TARGET)s/dominion_worker.log
stderr_logfile=%(ENV_TARGET)s/dominion_worker.log

[program:orion]
autorestart=false
command=run_orion.sh
stopsignal=KILL
stopasgroup=true
stdout_logfile=%(ENV_TARGET)s/orion.log
stderr_logfile=%(ENV_TARGET)s/orion.log

[program:cusdeb-api]
autorestart=false
command=run_cusdeb_api.sh
Expand Down
4 changes: 3 additions & 1 deletion functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,14 @@ install_requirements_to_virtenvs() {
exec_cmd "${TARGET}/${service}"-env/bin/pip install -r "${TARGET}/${service}"/requirements.txt
done

# CusDeb API is used as an external dependency for BlackMagic and Dominion
# CusDeb API is used as an external dependency for BlackMagic, Dominion and Orion

exec_cmd "${TARGET}"/blackmagic-env/bin/pip install -r "${TARGET}"/cusdeb-api/requirements.txt

exec_cmd "${TARGET}"/dominion-env/bin/pip install -r "${TARGET}"/cusdeb-api/requirements.txt

exec_cmd "${TARGET}"/orion-env/bin/pip install -r "${TARGET}"/cusdeb-api/requirements.txt

# Shirow is used as an external dependency for BlackMagic and Dominion

exec_cmd "${TARGET}"/blackmagic-env/bin/pip install -r "${TARGET}"/shirow/requirements.txt
Expand Down
13 changes: 5 additions & 8 deletions runners/run_orion.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#!/bin/bash

pushd "${TARGET}/orion"
PYTHONPATH="${TARGET}/shirow:$(pwd)"
export PYTHONPATH
export PYTHONPATH="${TARGET}/shirow:${TARGET}/cusdeb-api:$(pwd)"
export DJANGO_SETTINGS_MODULE=orion.settings

env PATH="${PATH}:$(pwd)/bin" "${TARGET}"/orion-env/bin/python ./bin/server.py \
env "${TARGET}"/orion-env/bin/python ./bin/server.py \
--log-file-prefix="${TARGET}"/orion.log \
--logging=debug \
--port="${ORION_PORT}" \
--redis-host="${REDIS_HOST}" \
--redis-port="${REDIS_PORT}" \
--token-key="${TOKEN_KEY}" \
--dominion-workspace="${TARGET}"/dominion-workspace
--token-key="${SECRET_KEY}" \
--logging=debug
popd