Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
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
dedal
Commits
a9d59f62
Commit
a9d59f62
authored
7 months ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
feat(gitlab): add install-from-buildcache stage [DO-NOT-MERGE]
Change-Id: I6ff1a4fde9237eb6f501fbb38d3ac84eb3d18711
parent
eb576ed5
No related branches found
No related tags found
No related merge requests found
Pipeline
#54784
passed with warnings with stages
in 16 hours, 47 minutes, and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+48
-0
48 additions, 0 deletions
.gitlab-ci.yml
with
48 additions
and
0 deletions
.gitlab-ci.yml
+
48
−
0
View file @
a9d59f62
...
...
@@ -249,3 +249,51 @@ buildnode-stuff:
-
${YASHCHIKI_HOME}/log
-
spack-build-outs.tar.gz
timeout
:
5 days
test-oci-buildcache
:
when
:
manual
dependencies
:
-
buildenv
stage
:
frontend
tags
:
-
esd_image
image
:
$GITLAB_BUILD_ENV_DOCKER_IMAGE
variables
:
SPACK_DEV_ENV
:
ebrains-dev
script
:
-
date
-
ls -lisa
-
. esd_spack_buildenv/share/spack/setup-env.sh
-
spack load py-pyyaml rsync
-
rm -rf esd_spack
-
test -d esd_spack || git clone -b eric_testing https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/spack esd_spack
-
pushd esd_spack; git fetch origin eric_testing && git reset --hard FETCH_HEAD; popd
-
test -d esd_spack/var/spack/repos/ebrains-spack-builds || git clone -b image_build https://gitlab.ebrains.eu/ri/tech-hub/platform/esd/ebrains-spack-builds esd_spack/var/spack/repos/ebrains-spack-builds
-
pushd esd_spack/var/spack/repos/ebrains-spack-builds; git fetch origin image_build && git reset --hard FETCH_HEAD; popd
-
echo "repos:" > esd_spack/etc/spack/repos.yaml
-
echo " - \$spack/var/spack/repos/ebrains-spack-builds" >> esd_spack/etc/spack/repos.yaml
-
esd_spack/bin/spack repo list
-
esd_spack/bin/spack repo list --scope=site
-
echo "mirrors:" > esd_spack/etc/spack/mirrors.yaml
-
echo " ebrains_harbor:" >> esd_spack/etc/spack/mirrors.yaml
-
echo " url:" "oci://docker-registry.ebrains.eu/brainscales/esd_buildcache_spackformat" >> esd_spack/etc/spack/mirrors.yaml
-
. esd_spack/share/spack/setup-env.sh
-
spack mirror list
-
spack mirror list --scope=site
-
spack buildcache list
-
spack env create default
-
rsync -a ${SPACK_ENVIRONMENT_REPO}/. esd_spack/var/spack/environments/default
-
spack-python ${SPACK_ENVIRONMENT_REPO}/site-config/ymerge.py esd_spack/var/spack/environments/default/spack.yaml ${SPACK_ENVIRONMENT_REPO}/site-config/${SYSTEMNAME}/spack.yaml > /tmp/spack.yaml
-
mv /tmp/spack.yaml esd_spack/var/spack/environments/default
-
date
-
spack -e default --test=root --fresh concretize
-
date
-
spack -e default spec
-
date
-
spack -e default install --use-buildcache=only
-
date
cache
:
-
key
:
buildenv-$CI_COMMIT_REF_SLUG
policy
:
pull
paths
:
-
esd_spack_buildenv/
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