Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iRMB
VirtualFluids
Commits
6f885e51
Commit
6f885e51
authored
3 years ago
by
Sven Marcus
Browse files
Options
Downloads
Patches
Plain Diff
Use env variables for phoenix connection
parent
17206022
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!48
Adds a convergence analysis test case that runs on Phoenix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-12
15 additions, 12 deletions
.gitlab-ci.yml
with
15 additions
and
12 deletions
.gitlab-ci.yml
+
15
−
12
View file @
6f885e51
...
@@ -243,14 +243,17 @@ gcc_9_python_slurm_test:
...
@@ -243,14 +243,17 @@ gcc_9_python_slurm_test:
needs
:
[
"
gcc_9_python"
]
needs
:
[
"
gcc_9_python"
]
rules
:
-
if
:
$PHOENIX_PRIVATE_KEY
tags
:
tags
:
-
linux
-
linux
-
privileged
-
privileged
variables
:
variables
:
SSH_KEY
:
"
$
SSH
_PRIVATE_KEY"
SSH_KEY
:
"
$
PHOENIX
_PRIVATE_KEY"
HOST
:
"
phoenix.hlr.rz.tu-bs.de
"
HOST
:
"
$PHOENIX_HOSTNAME
"
PHOENIX_USER
:
"
y0054816
"
USER
:
"
$
PHOENIX_USER"
before_script
:
before_script
:
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
...
@@ -261,19 +264,19 @@ gcc_9_python_slurm_test:
...
@@ -261,19 +264,19 @@ gcc_9_python_slurm_test:
-
echo "$SSH_KEY" | tr -d '\r' | ssh-add -
-
echo "$SSH_KEY" | tr -d '\r' | ssh-add -
-
echo $SSH_KEY >> ansible/private_key
-
echo $SSH_KEY >> ansible/private_key
-
ssh-keyscan -t rsa $HOST >> ~/.ssh/known_hosts
-
ssh-keyscan -t rsa $HOST >> ~/.ssh/known_hosts
-
ssh $
PHOENIX_
USER@$HOST "rm -rf output-*"
-
ssh $USER@$HOST "rm -rf output-*"
-
ssh $
PHOENIX_
USER@$HOST "rm -f *.out"
-
ssh $USER@$HOST "rm -f *.out"
-
pip3 install git+git://github.com/SvenMarcus/ssh-slurm-runner
-
pip3 install git+git://github.com/SvenMarcus/ssh-slurm-runner
script
:
script
:
-
singularity build PoiseuilleTestContainer.sif Python/SlurmTests/poiseuille/PoiseuilleTestContainer.def
-
singularity build PoiseuilleTestContainer.sif Python/SlurmTests/poiseuille/PoiseuilleTestContainer.def
-
scp PoiseuilleTestContainer.sif $
PHOENIX_
USER@$HOST:PoiseuilleTestContainer.sif
-
scp PoiseuilleTestContainer.sif $USER@$HOST:PoiseuilleTestContainer.sif
-
scp Python/SlurmTests/poiseuille/slurm.job $
PHOENIX_
USER@$HOST:slurm.job
-
scp Python/SlurmTests/poiseuille/slurm.job $USER@$HOST:slurm.job
-
python3 -m ssh_slurm_runner slurm.job --host $HOST --user $
PHOENIX_
USER --keyfile ansible/private_key
-
python3 -m ssh_slurm_runner slurm.job --host $HOST --user $USER --keyfile ansible/private_key
-
ssh $
PHOENIX_
USER@$HOST "rm -rf output-*"
-
ssh $USER@$HOST "rm -rf output-*"
-
ssh $
PHOENIX_
USER@$HOST "rm -f *.out"
-
ssh $USER@$HOST "rm -f *.out"
-
ssh $
PHOENIX_
USER@$HOST "rm PoiseuilleTestContainer.sif"
-
ssh $USER@$HOST "rm PoiseuilleTestContainer.sif"
-
ssh $
PHOENIX_
USER@$HOST "rm slurm.job"
-
ssh $USER@$HOST "rm slurm.job"
###############################################################################
###############################################################################
## Benchmark ##
## Benchmark ##
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment