Nantes Université

Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 786b9a85 rédigé par Jean-Francois GUILLAUME's avatar Jean-Francois GUILLAUME :squid:
Parcourir les fichiers

removing slurm_pam because it's already included in slurm + adding dmtcp

parent 8cd48315
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -15,8 +15,8 @@ build:
- 'if [ ${COMPILE_MUNGE} -eq 1 ]; then /usr/bin/echo "compiling munge ${MUNGE_VERSION} - ${MUNGE_DEST_ARCH} from ${MUNGE_URL}" ; ./compile_munge.sh ; fi'
- '/usr/bin/echo "compiling ${SLURM_VERSION} - ${SLURM_DEST_ARCH} from ${SLURM_URL}"'
- './compile_slurm.sh'
- 'if [ ${COMPILE_SLURM_PAM} -eq 1 ]; then /usr/bin/echo "compiling slurm_pam ${SLURM_PAM_VERSION} - ${SLURM_PAM_DEST_ARCH} from ${SLURM_PAM_URL}" ; ./compile_slurm_pam.sh ; fi'
- 'if [ ${COMPILE_AUKS} -eq 1 ]; then /usr/bin/echo "compiling auks ${AUKS_VERSION} - ${AUKS_DEST_ARCH} from ${AUKS_URL}" ; ./compile_auks.sh ; fi'
- 'if [ ${COMPILE_DMTCP} -eq 1 ]; then /usr/bin/echo "compiling dmtcp ${dmtcp_VERSION} - ${dmtcp_DEST_ARCH} from ${dmtcp_URL}" ; ./compile_dmtcp.sh ; fi'
- '/usr/bin/ls ./ARTIFACTS/*'
artifacts:
......
......@@ -19,15 +19,6 @@ export MUNGE_URL="https://github.com/dun/munge/"
export MUNGE_DEST_ARCH="x86_64"
export MUNGE_OPTIONS=''
#
# SLURM_PAM RELATED | Should not be needed as it's compiled with slurm
#
export COMPILE_SLURM_PAM=0
export SLURM_PAM_VERSION="1.6"
export SLURM_PAM_DEST_ARCH="x86_64"
export SLURM_PAM_URL="https://www.schedmd.com/downloads/extras/pam_slurm-${SLURM_PAM_VERSION}.tar.bz2"
export SLURM_PAM_OPTIONS=''
#
# AUKS RELATED
#
......@@ -36,4 +27,14 @@ export AUKS_VERSION="0.4.4"
export AUKS_URL="https://github.com/hautreux/auks/"
export AUKS_DEST_ARCH="x86_64"
export AUKS_BUILD_DEP_OPTIONS='--define="_with_systemd 1"'
export AUKS_BUILD_OPTIONS='--with systemd'
\ No newline at end of file
export AUKS_BUILD_OPTIONS='--with systemd'
#
# DMTCP RELATED
#
export COMPILE_DMTCP=1
export DMTCP_VERSION="2.6.0"
export DMTCP_URL="https://github.com/dmtcp/dmtcp/"
export DMTCP_DEST_ARCH="x86_64"
export DMTCP_BUILD_DEP_OPTIONS=''
export DMTCP_BUILD_OPTIONS=''
\ No newline at end of file
#!/bin/bash -xe
# Cleaning pre compilation
/usr/bin/rm -rf ${TOP_DIR}/BUILD/* ${TOP_DIR}/RPMS/* ${TOP_DIR}/SRPMS/* ${TOP_DIR}/SOURCES/* ${TOP_DIR}/BUILDROOT/*
# retrieving sources
/usr/bin/git clone -b slurm_pam-${SLURM_PAM_VERSION} ${SLURM_PAM_URL} ${TOP_DIR}/SOURCES/slurm_pam-${SLURM_PAM_VERSION}
/usr/bin/cp ${TOP_DIR}/SOURCES/slurm_pam-${SLURM_PAM_VERSION}/slurm_pam.spec ${TOP_DIR}/SPECS/slurm_pam.spec
tar --exclude-vcs --totals --create --verbose --xz --file ${TOP_DIR}/SOURCES/slurm_pam-${SLURM_PAM_VERSION}.tar.xz -C ${TOP_DIR}/SOURCES/ slurm_pam-${SLURM_PAM_VERSION}
# installing dependencies
/bin/yum makecache fast
/usr/bin/touch /var/lib/rpm/*
/bin/yum-builddep -y ${TOP_DIR}/SPECS/slurm_pam.spec
/usr/bin/cp ${TOP_DIR}/rpmmacros ~/.rpmmacros
# compiling rpm
/usr/bin/rpmbuild --clean --target=${SLURM_PAM_DEST_ARCH} ${SLURM_PAM_OPTIONS} -ba ${TOP_DIR}/SPECS/slurm_pam.spec
# moving rpms to artifacts directories
/usr/bin/find ${TOP_DIR}/RPMS/ -type f -exec /usr/bin/cp -v {} ${TOP_DIR}/ARTIFACTS/ \;
# installing result to be used when compiling slurm
/usr/bin/yum install -y ${TOP_DIR}/ARTIFACTS/*
# Cleaning post compilation
/usr/bin/rm -rf ${TOP_DIR}/BUILD/* ${TOP_DIR}/RPMS/* ${TOP_DIR}/SRPMS/* ${TOP_DIR}/SOURCES/* ${TOP_DIR}/BUILDROOT/*
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter