Commit f4369fb8 authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Atualizando arquivo de configuração do sga para podermos referenciar o mesmo...

Atualizando arquivo de configuração do sga para podermos referenciar o mesmo diretório de algoritmos
dentro e fora da imagem docker.

[SOMA-8629]
[SOMA-8212]
parent 16cfb220
Pipeline #84720 failed with stages
in 5 minutes and 13 seconds
......@@ -66,3 +66,20 @@ docker run -d \
--privileged \
soma/sga
```
We can also configure a different algorithm directory for the image. We have the environment variable `SGAD_ALGORITHM_ROOT_DIR`.
```console
docker run -d \
--rm \
-p 40100:40100 \
-v "${WORKING_DIR}/data/projects":/sgad/data/projects \
-v "${WORKING_DIR}/another-dir/algorithms": "${WORKING_DIR}/another-dir/algorithms" \
-e CSBASE_SERVER="http://csgrided:40500" \
-e SGAD_HOST="${HOSTNAME}" \
-e SGAD_PORT="40100" \
-e SGAD_NAME="tempestade" \
-e SGAD_ALGORITHM_ROOT_DIR="${WORKING_DIR}/another-dir/algorithms
--network=host \
--privileged \
soma/sga
......@@ -7,7 +7,7 @@ status_interval_s = 10
exec_polling_interval_s = 5
register_retry_s = 3
project_root_dir = "/sgad/data/projects"
algorithm_root_dir = "/sgad/data/algorithms"
algorithm_root_dir = os.getenv("SGAD_ALGORITHM_ROOT_DIR") or "/sgad/data/algorithms"
runtime_data_dir = "/tmp/sgad"
sandbox_root_dir = "/tmp/sgad/sandbox"
driver = "sga.driver.posix"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment