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
......@@ -10,4 +10,4 @@ if [ -z "$1" ]; then
exit 1
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
exit 1
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
mkdir -p $HOME/.singularity/images
......@@ -39,7 +39,7 @@ fi
if [ "$1" == "shell" ]; then
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`
echo -e "\e[33mWelcome to the normal operating system ($SYS)\e[0m"
else
......
......@@ -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"
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
exit 1
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
exit 1
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
else
echo -e "\e[33mYou already have the newest version of\e[0m $IMAGE_OS \e[33mimage.\e[0m"
fi
Bootstrap: docker
From: centos:latest
From: centos:7
%post
yum -y update && yum -y upgrade
......
......@@ -2,9 +2,9 @@ GPU_DRIVER_VERSION=390.30
GPU_DRIVER_PATH=/apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run
MPSS_PATH=/opt/mpss
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
MODULEFILE_PATH=/apps/modules
USER_IMAGE=easybuild
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment