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
1
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
eb98f41b
Commit
eb98f41b
authored
1 year ago
by
Philipp Spilger
Browse files
Options
Downloads
Patches
Plain Diff
chore: Reduce difference between visionary and asic create_recipe.sh
Change-Id: I3b19acd63b2f9b1c851fe3946db89d8dfa4a93d4
parent
e529ff48
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/yashchiki/styles/asic/create_recipe.sh
+3
-9
3 additions, 9 deletions
share/yashchiki/styles/asic/create_recipe.sh
share/yashchiki/styles/visionary/create_recipe.sh
+2
-2
2 additions, 2 deletions
share/yashchiki/styles/visionary/create_recipe.sh
with
5 additions
and
11 deletions
share/yashchiki/styles/asic/create_recipe.sh
+
3
−
9
View file @
eb98f41b
...
...
@@ -13,10 +13,10 @@ From: ${DOCKER_BASE_IMAGE}
%setup
# bind-mount spack-folder as moving involves copying the complete download cache
mkdir
\$
{SINGULARITY_ROOTFS}/opt/spack
mount --no-mtab --bind "
${
WORKSPACE
}
/spack
" "
\$
{SINGULARITY_ROOTFS}/opt/spack"
mount --no-mtab --bind "
${
YASHCHIKI_SPACK_PATH
}
" "
\$
{SINGULARITY_ROOTFS}/opt/spack"
# bind-mount ccache
mkdir
\$
{SINGULARITY_ROOTFS}/opt/ccache
mount --no-mtab --bind "
${
HOME
}
/spack_ccache" "
\$
{SINGULARITY_ROOTFS}/opt/ccache"
mount --no-mtab --bind "
${
YASHCHIKI_CACHES_ROOT
}
/spack_ccache" "
\$
{SINGULARITY_ROOTFS}/opt/ccache"
# bind-mount build_cache
mkdir -p "
\$
{SINGULARITY_ROOTFS}
${
BUILD_CACHE_INSIDE
}
"
# create buildcache directory if it does not exist
...
...
@@ -34,7 +34,7 @@ From: ${DOCKER_BASE_IMAGE}
mount --no-mtab --bind "
${
YASHCHIKI_SPACK_CONFIG
}
" "
\$
{SINGULARITY_ROOTFS}/tmp/spack_config"
# copy install scripts
mkdir "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av --chmod 0755 "
${
ROOT_DIR
}
"/share/yashchiki/styles/
asic
/*.sh "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av --chmod 0755 "
${
ROOT_DIR
}
"/share/yashchiki/styles/
${
CONTAINER_STYLE
}
/*.sh "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av --chmod 0755 "
${
ROOT_DIR
}
"/lib/yashchiki/*.sh "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av "
${
ROOT_DIR
}
"/lib/yashchiki/*.awk "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av "
${
ROOT_DIR
}
"/share/yashchiki/patches "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
...
...
@@ -303,10 +303,4 @@ for view in "${spack_views[@]}"; do
generate_appenv
"
${
view
}
"
"
${
view
}
"
[[
"
${
view
}
"
=
~ ^visionary-
]]
&&
generate_appenv
"
${
view
#visionary-
}
"
"
${
view
}
"
)
>>
"
${
YASHCHIKI_RECIPE_PATH
}
"
if
[
"
${
view
}
"
=
"visionary-simulation"
]
;
then
cat
<<
EOF
>>"
${
YASHCHIKI_RECIPE_PATH
}
"
export NEST_MODULES=visionarymodule
EOF
fi
done
This diff is collapsed.
Click to expand it.
share/yashchiki/styles/visionary/create_recipe.sh
+
2
−
2
View file @
eb98f41b
...
...
@@ -39,7 +39,7 @@ From: ${DOCKER_BASE_IMAGE}
mount --no-mtab --bind "
${
YASHCHIKI_SPACK_CONFIG
}
" "
\$
{SINGULARITY_ROOTFS}/tmp/spack_config"
# copy install scripts
mkdir "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av --chmod 0755 "
${
ROOT_DIR
}
"/share/yashchiki/styles/
visionary
/*.sh "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av --chmod 0755 "
${
ROOT_DIR
}
"/share/yashchiki/styles/
${
CONTAINER_STYLE
}
/*.sh "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av --chmod 0755 "
${
ROOT_DIR
}
"/lib/yashchiki/*.sh "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av "
${
ROOT_DIR
}
"/lib/yashchiki/*.awk "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
rsync -av "
${
ROOT_DIR
}
"/share/yashchiki/patches "
\$
{SINGULARITY_ROOTFS}/
${
SPACK_INSTALL_SCRIPTS
}
"
...
...
@@ -74,7 +74,7 @@ From: ${DOCKER_BASE_IMAGE}
locale-gen
# propagate environment variables to container recipe
export DEPENDENCY_PYTHON="
${
DEPENDENCY_PYTHON
}
"
export YASHCHIKI_BUILD_SPACK_GCC=
${
YASHCHIKI_BUILD_SPACK_GCC
}
export YASHCHIKI_BUILD_SPACK_GCC=
"
${
YASHCHIKI_BUILD_SPACK_GCC
}
"
export YASHCHIKI_SPACK_GCC="
${
YASHCHIKI_SPACK_GCC
}
"
export YASHCHIKI_SPACK_GCC_VERSION="
${
YASHCHIKI_SPACK_GCC_VERSION
}
"
export YASHCHIKI_SPACK_CONFIG="/tmp/spack_config"
...
...
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