Nantes Université

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

adding AUKS and slurm_pam

parent 36f7c353
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -15,6 +15,9 @@ 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 munge ${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 munge ${AUKS_VERSION} - ${AUKS_DEST_ARCH} from ${AUKS_URL}" ; ./compile_auks.sh ; fi'
- '/usr/bin/ls ./ARTIFACTS/*'
artifacts:
paths:
......
......@@ -7,7 +7,7 @@ export SLURM_RELEASE_SPEC="1"
export SLURM_URL="https://github.com/SchedMD/slurm"
export SLURM_DEST_ARCH="x86_64"
export SLURM_OPTIONS=""
export SLURM_BUILD_DEP_OPTIONS='--define="_with_hdf5 0" --define="_with_hwloc 0" --define="_with_lua 0" --define="_with_mysql 0" --define="_with_numa 0" --define="_with_openssl 0"'
export SLURM_BUILD_DEP_OPTIONS='--define="_with_hdf5 1" --define="_with_hwloc 1" --define="_with_lua 1" --define="_with_mysql 1" --define="_with_numa 1" --define="_with_openssl 1"'
#
# MUNGE RELATED
......@@ -17,3 +17,20 @@ export MUNGE_VERSION="0.5.13"
export MUNGE_URL="https://github.com/dun/munge/"
export MUNGE_DEST_ARCH="x86_64"
export MUNGE_OPTIONS=""
#
# SLURM_PAM RELATED
#
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"
#
# AUKS RELATED
#
export COMPILE_AUKS=1
export AUKS_VERSION="0.4.4"
export AUKS_URL="https://github.com/hautreux/auks/"
export AUKS_DEST_ARCH="x86_64"
export AUKS_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 ${AUKS_URL} ${TOP_DIR}/SOURCES/auks-${AUKS_VERSION}
/usr/bin/cd ${TOP_DIR}/SOURCES/auks-${AUKS_VERSION}
/usr/bin/git checkout -b tags/${AUKS_VERSION}
/usr/bin/cd ${TOP_DIR}
/usr/bin/cp ${TOP_DIR}/SOURCES/auks-${AUKS_VERSION}/auks.spec ${TOP_DIR}/SPECS/auks.spec
tar --exclude-vcs --totals --create --verbose --xz --file ${TOP_DIR}/SOURCES/auks-${AUKS_VERSION}.tar.xz -C ${TOP_DIR}/SOURCES/ auks-${AUKS_VERSION}
# installing dependencies
/bin/yum makecache fast
/usr/bin/touch /var/lib/rpm/*
/bin/yum-builddep -y -q -e 0 ${TOP_DIR}/SPECS/auks.spec
/usr/bin/cp ${TOP_DIR}/rpmmacros ~/.rpmmacros
# compiling rpm
/usr/bin/rpmbuild --clean --target=${AUKS_DEST_ARCH} ${AUKS_OPTIONS} -ba ${TOP_DIR}/SPECS/auks.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 -q -e 0 ${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/*
......@@ -38,7 +38,7 @@ fi
/usr/bin/echo "${SLURM_BUILD_DEP_OPTIONS}" | /usr/bin/rpmbuild --clean --target=${SLURM_DEST_ARCH} -ba ${TOP_DIR}/SPECS/slurm.spec
# moving rpms to artifacts directories
/usr/bin/find ${TOP_DIR}/RPMS/ -type f -exec /usr/bin/cp -v {} ${TOP_DIR}/ARTIFACTS/ \;
/usr/bin/find ${TOP_DIR}/RPMS/ -type f -exec -iname "*.rpm" /usr/bin/cp -v {} ${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/*
#!/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 -q -e 0 ${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 -q -e 0 ${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