Skip to content
Snippets Groups Projects
Commit 3cb48eb9 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

feat: add ESD variant [DO-NOT-MERGE]

Change-Id: I8342b3d05e0740f7a07a0cd59b44697d9de2b63e
parent 9e303915
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,13 @@ if [ -n "${SPACK_ENVIRONMENT:-}" ]; then
${MY_SPACK_CMD} env create default
# FIXME: via style config!
rsync -a ${SPACK_ENVIRONMENT_REPO}/. ${YASHCHIKI_SPACK_PATH}/var/spack/environments/default
# SPACK_ENVIRONMENT_REPO="${YASHCHIKI_SPACK_PATH}/var/spack/repos/ebrains-spack-builds" # from env var; FIXME: add to opts
# SPACK_ENVIRONMENT_PATH="${YASHCHIKI_SPACK_PATH}/var/spack/environments/default" # from env var; FIXME: add to opts
# SYSTEMNAME via env var; FIXME: style-specific config...
# FIXME: via style
PATH=${MY_SPACK_FOLDER}/bin:$PATH ${MY_SPACK_PYTHON} ${SPACK_ENVIRONMENT_REPO}/site-config/ymerge.py ${SPACK_ENVIRONMENT_PATH}/spack.yaml ${SPACK_ENVIRONMENT_REPO}/site-config/${SYSTEMNAME}/spack.yaml > /tmp/spack.yaml
mv /tmp/spack.yaml ${SPACK_ENVIRONMENT_PATH} # FIXME proper tmpfile handling
cat ${SPACK_ENVIRONMENT_PATH}/spack.yaml
echo "Created spack environment, now concretizing... "
# FIXME: track concretizer errors here:
(
......
docker_base_image: "debian:bookworm"
build_base_sandbox: true
spack_environment: true
cache:
source:
type: "oci"
build:
type: "oci"
dependency_python:
build: false
version: "3.11.2"
spack_gcc:
# Whether to build the specified gcc via spack or assume existance.
build: false
# Version to use as compiler for spack build.
version: "12.2.0"
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
#!/bin/bash
set -euo pipefail
shopt -s inherit_errexit
# This file is to install all packages that are a pre-requisite for spack to be
# installed.
prerequisites=(
"bzip2"
"ca-certificates"
"ccache"
"curl"
"diffutils"
"file"
"g++"
"gawk"
"gcc"
"gfortran"
"git"
"gnupg2"
"lbzip2"
"less"
"libc6-dev"
"locales"
"make"
"netbase"
"parallel"
"patch"
"patchelf"
"procps"
"python3"
"python3-yaml"
"python-is-python3"
"rsync"
"openssh-client"
"sudo"
"udev"
"unzip"
"xz-utils"
)
apt-get update
apt-get install -o DPkg::Options::=--force-confold --no-install-recommends -y "${prerequisites[@]}"
#!/bin/bash
#
# This script governs the whole spack install procedure.
# It is needed because the post-install routine is executed in sh which has
# limited capabilities of preserving built spack packages in case of an error.
#
set -euo pipefail
shopt -s inherit_errexit
SOURCE_DIR="$(dirname "$(readlink -m "${BASH_SOURCE[0]}")")"
source "${SOURCE_DIR}/commons.sh"
for pn in "${SPACK_INSTALL_SCRIPTS}/patches/*.patch"; do
patch -p 1 < ${pn}
done
# All spack packages that should be fetched/installed in the container
spack_packages=(
# FIXME: to be deleted, just for testing if packages and env build can be combined
#nest@3.7+sonata
gmake@4.4.1
)
# we should specify what `spack concretize --force --fresh --test root` provides (for the active ESD env)…
spack_views=(\
)
cat <<EOF
EOF
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment