Skip to content
Snippets Groups Projects
Commit 4a047b13 authored by Josef Hrabal's avatar Josef Hrabal
Browse files

modified: bin/image-exec

	modified:   bin/image-load
	modified:   bin/image-mpi
	modified:   bin/image-run
	modified:   bin/image-shell
	modified:   bin/image-update
	modified:   install/CENTOS7
	modified:   install/CONFIG
parent 47aa0cb5
No related branches found
No related tags found
No related merge requests found
...@@ -10,4 +10,4 @@ if [ -z "$1" ]; then ...@@ -10,4 +10,4 @@ if [ -z "$1" ]; then
exit 1 exit 1
fi fi
singularity exec --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL "$@" singularity exec --bind /scratch --bind /apps $IMAGE_PATH_LOCAL "$@"
...@@ -5,7 +5,7 @@ if [ -z "IMAGE_ROOT" ] || [ -z "IMAGE_OS" ] || [ -z "IMAGE_VERSION" ]; then ...@@ -5,7 +5,7 @@ if [ -z "IMAGE_ROOT" ] || [ -z "IMAGE_OS" ] || [ -z "IMAGE_VERSION" ]; then
exit 1 exit 1
fi fi
VERSION=$(ls -t $IMAGE_ROOT | grep .img | head -1) VERSION=$(ls -t $IMAGE_ROOT | grep .simg | head -1)
if [ ! -d "$HOME/.singularity/images" ]; then if [ ! -d "$HOME/.singularity/images" ]; then
mkdir -p $HOME/.singularity/images mkdir -p $HOME/.singularity/images
...@@ -39,7 +39,7 @@ fi ...@@ -39,7 +39,7 @@ fi
if [ "$1" == "shell" ]; then if [ "$1" == "shell" ]; then
export IMAGE_PATH_LOCAL="$HOME/.singularity/images/$LOCAL" export IMAGE_PATH_LOCAL="$HOME/.singularity/images/$LOCAL"
singularity shell --bind /scratch --bind /apps --writable $HOME/.singularity/images/$LOCAL singularity shell --bind /scratch --bind /apps $HOME/.singularity/images/$LOCAL
SYS=`/bin/cat /etc/centos-release` SYS=`/bin/cat /etc/centos-release`
echo -e "\e[33mWelcome to the normal operating system ($SYS)\e[0m" echo -e "\e[33mWelcome to the normal operating system ($SYS)\e[0m"
else else
......
...@@ -50,4 +50,4 @@ PARAM=$(echo "$PARAM" | sed -e 's/ */ /g' -e 's/^ *\(.*\) *$/\1/') ...@@ -50,4 +50,4 @@ PARAM=$(echo "$PARAM" | sed -e 's/ */ /g' -e 's/^ *\(.*\) *$/\1/')
#echo "mpirun $PARAM singularity exec --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL $EXEC" #echo "mpirun $PARAM singularity exec --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL $EXEC"
mpirun ${PARAM} singularity exec --bind /scratch --bind /apps --writable "$IMAGE_PATH_LOCAL" "$EXEC" mpirun ${PARAM} singularity exec --bind /scratch --bind /apps "$IMAGE_PATH_LOCAL" "$EXEC"
...@@ -5,4 +5,4 @@ if [ -z "IMAGE_PATH_LOCAL" ]; then ...@@ -5,4 +5,4 @@ if [ -z "IMAGE_PATH_LOCAL" ]; then
exit 1 exit 1
fi fi
singularity run --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL "$@" singularity run --bind /scratch --bind /apps $IMAGE_PATH_LOCAL "$@"
...@@ -5,4 +5,4 @@ if [ -z "IMAGE_PATH_LOCAL" ]; then ...@@ -5,4 +5,4 @@ if [ -z "IMAGE_PATH_LOCAL" ]; then
exit 1 exit 1
fi fi
singularity shell --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL $@ singularity shell --bind /scratch --bind /apps $IMAGE_PATH_LOCAL $@
...@@ -25,4 +25,3 @@ if [ "$LOCAL_VERSION" \< "$APPS_VERSION" ]; then ...@@ -25,4 +25,3 @@ if [ "$LOCAL_VERSION" \< "$APPS_VERSION" ]; then
else else
echo -e "\e[33mYou already have the newest version of\e[0m $IMAGE_OS \e[33mimage.\e[0m" echo -e "\e[33mYou already have the newest version of\e[0m $IMAGE_OS \e[33mimage.\e[0m"
fi fi
Bootstrap: docker Bootstrap: docker
From: centos:latest From: centos:7
%post %post
yum -y update && yum -y upgrade yum -y update && yum -y upgrade
......
...@@ -2,9 +2,9 @@ GPU_DRIVER_VERSION=390.30 ...@@ -2,9 +2,9 @@ GPU_DRIVER_VERSION=390.30
GPU_DRIVER_PATH=/apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run GPU_DRIVER_PATH=/apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run
MPSS_PATH=/opt/mpss MPSS_PATH=/opt/mpss
MIC_PATH=./rpm.tar.gz MIC_PATH=./rpm.tar.gz
SINGULARITY_BIN_PATH=/apps/all/Singularity/3.1.0/bin SINGULARITY_BIN_PATH=/apps/all/Singularity/3.3.0/bin
IMAGE_PATH=/apps/all/OS IMAGE_PATH=/apps/all/OS
MODULEFILE_PATH=/apps/modules MODULEFILE_PATH=/apps/modules
USER_IMAGE=easybuild USER_IMAGE=easybuild
EBROOTSQUASHFSMINTOOLS=/apps/all/squashfs-tools/4.3 EBROOTSQUASHFSMINTOOLS=/apps/all/squashfs-tools/4.3
PATH=$PATH:/apps/all/Singularity/3.1.0/bin PATH=$PATH:/apps/all/Singularity/3.3.0/bin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment