Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cobalt-installation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBALT
cobalt-installation
Commits
2c80a875
Commit
2c80a875
authored
2 months ago
by
Corné Lukken
Browse files
Options
Downloads
Patches
Plain Diff
Small refactors
parent
1f71d095
No related branches found
No related tags found
1 merge request
!1
Draft: Integrate CI/CD into COBALT spack builds
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.sh
+3
-3
3 additions, 3 deletions
configure.sh
docker/ci-runner/Dockerfile
+4
-1
4 additions, 1 deletion
docker/ci-runner/Dockerfile
docker/cobalt/Dockerfile
+3
-1
3 additions, 1 deletion
docker/cobalt/Dockerfile
with
10 additions
and
5 deletions
configure.sh
+
3
−
3
View file @
2c80a875
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
export
LIBRARY_PATH
=
/usr/lib/gcc/x86_64-linux-gnu/12/
export
LIBRARY_PATH
=
/usr/lib/gcc/x86_64-linux-gnu/12/
# Load Spack environment modules
# Load Spack environment modules
module use /opt/spack/
0.22.1
/share/spack/modules/linux-debian12-zen2/gcc/12.2.0
module use /opt/spack/
${
SPACK_VERSION
}
/share/spack/modules/linux-debian12-zen2/gcc/12.2.0
module load binutils
module load binutils
module load cuda
module load cuda
module load log4cplus
module load log4cplus
...
@@ -23,7 +23,7 @@ module load py-lxml
...
@@ -23,7 +23,7 @@ module load py-lxml
module load curl
module load curl
# tParset is broken, disable it
# tParset is broken, disable it
sed
-i
'/lofar_add_test(tParset/s/^/#/'
CoInterface/test/CMakeLists.txt
#
sed -i '/lofar_add_test(tParset/s/^/#/' CoInterface/test/CMakeLists.txt
# Run CMake
# Run CMake
cmake
-S
.
-B
gnucxx11_opt
cmake
-S
.
-B
gnucxx11_opt
This diff is collapsed.
Click to expand it.
docker/ci-runner/Dockerfile
+
4
−
1
View file @
2c80a875
ARG
SOURCE_IMAGE="debian:12.10"
ARG
SOURCE_IMAGE="debian:12.10"
FROM
${SOURCE_IMAGE}
FROM
${SOURCE_IMAGE}
ENV
SPACK_VERSION=0.23.0
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt update
&&
\
RUN
apt update
&&
\
...
@@ -26,7 +28,8 @@ ENV SPACK_VERSION=0.23.1
...
@@ -26,7 +28,8 @@ ENV SPACK_VERSION=0.23.1
ENV
SPACK_DIR=/opt/spack/${SPACK_VERSION}
ENV
SPACK_DIR=/opt/spack/${SPACK_VERSION}
RUN
git clone
--depth
1
--branch
v
${
SPACK_VERSION
}
https://github.com/spack/spack.git
${
SPACK_DIR
}
RUN
git clone
--depth
1
--branch
v
${
SPACK_VERSION
}
https://github.com/spack/spack.git
${
SPACK_DIR
}
RUN
ln
-s
${
SPACK_DIR
}
/bin/spack /usr/local/bin/
RUN
ln
-s
${
SPACK_DIR
}
/bin/spack /usr/local/bin/
RUN
.
${
SPACK_DIR
}
/share/spack/setup-env.sh
&&
spack compiler find
# && spack mirror add v${SPACK_VERSION} https://binaries.spack.io/v${SPACK_VERSION}
RUN
.
${
SPACK_DIR
}
/share/spack/setup-env.sh
&&
spack compiler find
# && spack mirror add v${SPACK_VERSION} https://binaries.spack.io/v${SPACK_VERSION}
ENV
SPACK_REPO_DIR=/opt/spack/repos
ENV
SPACK_REPO_DIR=/opt/spack/repos
RUN
mkdir
-p
${
SPACK_REPO_DIR
}
RUN
mkdir
-p
${
SPACK_REPO_DIR
}
...
...
This diff is collapsed.
Click to expand it.
docker/cobalt/Dockerfile
+
3
−
1
View file @
2c80a875
ARG
SOURCE_IMAGE="git.astron.nl:5000/rd/cobalt-installation/spack:latest"
ARG
SOURCE_IMAGE="git.astron.nl:5000/rd/cobalt-installation/spack:latest"
FROM
${SOURCE_IMAGE}
FROM
${SOURCE_IMAGE}
ENV
SPACK_VERSION=0.23.0
COPY
./modules.yaml ./
COPY
./modules.yaml ./
COPY
./configure.sh ./
COPY
./configure.sh ./
...
@@ -11,7 +13,7 @@ RUN . ${SPACK_DIR}/share/spack/setup-env.sh && \
...
@@ -11,7 +13,7 @@ RUN . ${SPACK_DIR}/share/spack/setup-env.sh && \
cp
modules.yaml ~/.spack/modules.yaml
&&
\
cp
modules.yaml ~/.spack/modules.yaml
&&
\
spack module tcl refresh
-y
&&
\
spack module tcl refresh
-y
&&
\
module purge
&&
\
module purge
&&
\
module use /opt/spack/
0.22.1
/share/spack/modules/linux-debian12-
*
/gcc/12.2.0
&&
\
module use /opt/spack/
${
SPACK_VERSION
}
/share/spack/modules/linux-debian12-
*
/gcc/12.2.0
&&
\
cd
cobalt
&&
\
cd
cobalt
&&
\
.
../configure.sh
&&
\
.
../configure.sh
&&
\
make
-C
gnucxx11_opt/
-j
4
make
-C
gnucxx11_opt/
-j
4
...
...
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