-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
32846a0
commit cc5e405
Showing
11 changed files
with
93 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ __pycache__/ | |
*$py.class | ||
*.pyc | ||
*.pyo | ||
*/outputs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ naif0012.tls | |
# Parsl | ||
/src/runinfo/ | ||
|
||
# Outputs | ||
outputs/ | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import os | ||
import sys | ||
|
||
# Principais variaveis de ambiente | ||
# - PARSL_ENV=linea | ||
# - REMOTE_PIPELINE_ROOT=/lustre/t1/scratch/users/app.tno/tno_testing | ||
# - PIPELINE_PATH=/lustre/t1/scratch/users/app.tno/tno_testing/predict_occultation/pipeline | ||
# - PREDICT_OUTPUTS=/lustre/t1/scratch/users/app.tno/tno_testing/outputs/predict_occultation | ||
# - DB_URI= | ||
# - DB_URI_ADMIN= | ||
# - SSHKEY=/home/apptno/.ssh/id_rsa | ||
|
||
# Variaveis obrigatórias independente do ambiente | ||
if "PARSL_ENV" not in os.environ: | ||
sys.exit("It is necessary to configure the PARSL_ENV in docker-compose.yml") | ||
|
||
if "DB_URI" not in os.environ: | ||
sys.exit("It is necessary to configure the DB_URI in docker-compose.yml") | ||
|
||
if "DB_URI_ADMIN" not in os.environ: | ||
sys.exit("It is necessary to configure the DB_URI_ADMIN in docker-compose.yml") | ||
|
||
if "PREDICT_OUTPUTS" not in os.environ: | ||
sys.exit("It is necessary to configure the PREDICT_OUTPUTS in docker-compose.yml") | ||
|
||
parsl_env = os.getenv("PARSL_ENV") | ||
print(f"PARSL_ENV: {parsl_env}") | ||
|
||
if parsl_env == "linea": | ||
# Variaveis obrigatórias para uso no Ambiente Linea. | ||
if "REMOTE_PIPELINE_ROOT" not in os.environ: | ||
sys.exit( | ||
f"It is necessary to configure the REMOTE_PIPELINE_ROOT in docker-compose.yml" | ||
) | ||
|
||
if not "SSHKEY" in os.environ: | ||
sys.exit( | ||
"It is necessary to configure the SSHKEY in docker-compose.yml when PARSL_ENV=linea" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters