-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release RPMs for multiple slurm versions (#20)
- add `Require: slurm = SLURM_VERSION` to rpm spec - makefile takes an option `RPM_SLURM_VERSION` (used only in rpm spec) - add a script to make create and extract the binary rpm from the container - Release rpm artifacts for multiple slurm versions
- Loading branch information
1 parent
5227eeb
commit 9af1110
Showing
6 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
mkdir -p /tmp/build-rpm | ||
cd /tmp/build-rpm | ||
|
||
_SLURM_VER=$(srun --version | sed 's/slurm //') | ||
make -f /slurm-uenv-mount/Makefile RPM_SLURM_VERSION="${_SLURM_VER}" rpm | ||
rpmbuild --rebuild "$(find rpm/SRPMS -name '*.rpm' -type f -print -quit)" --define "_topdir $(pwd)/rpm" | ||
|
||
rm ./*.rpm | ||
find rpm -name '*.rpm' -type f -exec cp {} . \; | ||
|
||
fname=$(ls *x86_64.rpm) | ||
dstname=$(echo $fname | sed "s/x86_64/x86_64-slurm-${_SLURM_VER}/") | ||
mv $fname $dstname | ||
|
||
|
||
echo | ||
echo "RPM built. " | ||
echo | ||
|
||
echo "Copy from container:" | ||
echo | ||
printf "\tdocker compose cp slurm:$(realpath $dstname) ." | ||
echo | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters