Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
38
Issue boards
Milestones
Wiki
Code
Merge requests
25
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
0c9fa2cb
Commit
0c9fa2cb
authored
3 years ago
by
Athanasios Karmas
Browse files
Options
Downloads
Patches
Plain Diff
Updates for extended support of spack envs in the TC pipelines
parent
da0b67cb
No related branches found
No related tags found
No related merge requests found
Pipeline
#10834
failed with stage
Stage:
in 14 minutes and 23 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
create_JupyterLab_kernel.sh
+7
-5
7 additions, 5 deletions
create_JupyterLab_kernel.sh
create_job.sh
+6
-5
6 additions, 5 deletions
create_job.sh
load_sim_tools.sh
+1
-16
1 addition, 16 deletions
load_sim_tools.sh
with
17 additions
and
28 deletions
.gitlab-ci.yml
+
3
−
2
View file @
0c9fa2cb
...
@@ -3,7 +3,8 @@ stages:
...
@@ -3,7 +3,8 @@ stages:
variables
:
variables
:
OPENSHIFT_SERVER
:
$OPENSHIFT_DEV_SERVER
OPENSHIFT_SERVER
:
$OPENSHIFT_DEV_SERVER
BUILD_ENV
:
$BUILD_ENV
INSTALLATION_ROOT
:
$INSTALLATION_ROOT
SPACKIFIED_ENV
:
$SPACKIFIED_ENV
OP
:
$OPERATION
OP
:
$OPERATION
#SPACK_ENV_TAR_FILE: ebrains-spack-builds${CI_PIPELINE_ID}.tar.gz
#SPACK_ENV_TAR_FILE: ebrains-spack-builds${CI_PIPELINE_ID}.tar.gz
SPACK_ENV_TAR_FILE
:
ebrains-spack-builds.tar.gz
SPACK_ENV_TAR_FILE
:
ebrains-spack-builds.tar.gz
...
@@ -18,7 +19,7 @@ deploy-build-environment:
...
@@ -18,7 +19,7 @@ deploy-build-environment:
script
:
script
:
# create job description file
# create job description file
-
chmod a+x create_job.sh
-
chmod a+x create_job.sh
-
./create_job.sh $
BUIL
D_ENV $OP $SPACK_ENV_TAR_FILE $CI_PIPELINE_ID
-
./create_job.sh $
INSTALLATION_ROOT $SPACKIFIE
D_ENV $OP $SPACK_ENV_TAR_FILE $CI_PIPELINE_ID
-
cat simplejob.yml
-
cat simplejob.yml
# select the project in openshift
# select the project in openshift
-
oc project jupyterhub-int
-
oc project jupyterhub-int
...
...
This diff is collapsed.
Click to expand it.
create_JupyterLab_kernel.sh
+
7
−
5
View file @
0c9fa2cb
...
@@ -4,13 +4,14 @@
...
@@ -4,13 +4,14 @@
#usage :./create_JupyterLab_kernel.sh $BUILD-ENV
#usage :./create_JupyterLab_kernel.sh $BUILD-ENV
#==============================================================================
#==============================================================================
ENV
=
$1
INSTALLATION_ROOT
=
$1
SPACKIFIED_ENV
=
$2
CONF_PATH
=
"/srv/jupyterlab_kernels/int/release20210930"
CONF_PATH
=
"/srv/jupyterlab_kernels/int/release20210930"
# load spack and spack repos
# load spack and spack repos
cp
-r
/srv/
$
ENV
/spack/.spack ~
cp
-r
/srv/
$
INSTALLATION_ROOT
/spack/.spack ~
source
/srv/
$
ENV
/spack/share/spack/setup-env.sh
source
/srv/
$
INSTALLATION_ROOT
/spack/share/spack/setup-env.sh
spack repo add /srv/
$
ENV
/ebrains-spack-builds
spack repo add /srv/
$
INSTALLATION_ROOT
/ebrains-spack-builds
# prepare the env file
# prepare the env file
mkdir
$CONF_PATH
/bin
mkdir
$CONF_PATH
/bin
...
@@ -20,7 +21,8 @@ set -euxo pipefail
...
@@ -20,7 +21,8 @@ set -euxo pipefail
EOF
EOF
# load here all tools
# load here all tools
spack load
--sh
-r
python@3.8.11 py-ipykernel py-pip py-numpy@1.21.0 py-scipy py-pandas py-seaborn py-matplotlib arbor nest@3.0 neuron py-pynn tvb-data tvb-library %gcc@10.3.0
>>
$CONF_PATH
/bin/env.sh
#spack load --sh -r python@3.8.11 py-ipykernel py-pip py-numpy@1.21.0 py-scipy py-pandas py-seaborn py-matplotlib arbor nest@3.0 neuron py-pynn tvb-data tvb-library %gcc@10.3.0 >> $CONF_PATH/bin/env.sh
spack
env
activate
$SPACKIFIED_ENV
--sh
>>
$CONF_PATH
/bin/env.sh
# end of env creation
# end of env creation
cat
<<
EOF
>>
$CONF_PATH
/bin/env.sh
cat
<<
EOF
>>
$CONF_PATH
/bin/env.sh
...
...
This diff is collapsed.
Click to expand it.
create_job.sh
+
6
−
5
View file @
0c9fa2cb
#!/bin/bash
#!/bin/bash
BUILD_ENV
=
$1
INSTALLATION_ROOT
=
$1
OP
=
$2
SPACKIFIED_ENV
=
$2
SPACK_ENV_TAR_FILE
=
$3
OP
=
$3
OC_JOB_ID
=
$4
SPACK_ENV_TAR_FILE
=
$4
OC_JOB_ID
=
$5
cat
<<
EOT
>> simplejob.yml
cat
<<
EOT
>> simplejob.yml
apiVersion: batch/v1
apiVersion: batch/v1
...
@@ -30,7 +31,7 @@ spec:
...
@@ -30,7 +31,7 @@ spec:
volumeMounts:
volumeMounts:
- name: sharedbin
- name: sharedbin
mountPath: /srv
mountPath: /srv
command: ["/usr/local/bin/deploy-build-env.sh", "
$
BUIL
D_ENV
", "
$OP
", "
$SPACK_ENV_TAR_FILE
"]
command: ["/usr/local/bin/deploy-build-env.sh", "
$
INSTALLATION_ROOT
", "
$SPACKIFIE
D_ENV
", "
$OP
", "
$SPACK_ENV_TAR_FILE
"]
volumes:
volumes:
- name: sharedbin
- name: sharedbin
persistentVolumeClaim:
persistentVolumeClaim:
...
...
This diff is collapsed.
Click to expand it.
load_sim_tools.sh
+
1
−
16
View file @
0c9fa2cb
...
@@ -13,22 +13,7 @@ source /srv/test-build/spack/share/spack/setup-env.sh
...
@@ -13,22 +13,7 @@ source /srv/test-build/spack/share/spack/setup-env.sh
cd
/srv/test-build/
cd
/srv/test-build/
spack repo add ebrains-spack-builds
spack repo add ebrains-spack-builds
cd
~
spack
env
activate ebrains-spack-builds
echo
"Loading packages..."
spack load
-r
python@3.8.11 %gcc@10.3.0
spack load
-r
py-numpy@1.21.0 %gcc@10.3.0
spack load
-r
py-pip %gcc@10.3.0
spack load
-r
py-scipy %gcc@10.3.0
spack load
-r
py-pandas %gcc@10.3.0
spack load
-r
py-seaborn %gcc@10.3.0
spack load
-r
py-matplotlib %gcc@10.3.0
spack load
-r
arbor %gcc@10.3.0
spack load
-r
neuron %gcc@10.3.0
spack load
-r
nest@3.0 %gcc@10.3.0
spack load
-r
py-pynn %gcc@10.3.0
spack load
-r
tvb-data %gcc@10.3.0
spack load
-r
tvb-library %gcc@10.3.0
echo
"Everything ready!"
echo
"Everything ready!"
#echo "Starting Python..."
#echo "Starting Python..."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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