54r4/sara-server-vre:latest

$ singularity pull shub://54r4/sara-server-vre:latest

Singularity Recipe

Bootstrap: docker
From: ubuntu:16.04

%post
apt-get update && apt-get -y install git wget vim openjdk-8-jdk gtk3-engines-xfce python python-pycurl xterm
mkdir -p /opt
cd /tmp
#wget http://www.uni-ulm.de/~nsn25/SARA/eclipse-jee-oxygen-1-linux-gtk-x86_64.tar.gz
wget http://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz -O e.tgz
sha256sum e.tgz # c2435e8f52fbe94859e8786d3c631c3c3b592c5f58d4c49de615fc414f6dfe3c
tar -xzf e.tgz
mv /tmp/eclipse /opt
mkdir -p /lib/modules # required for udocker to run 
wget https://raw.githubusercontent.com/indigo-dc/udocker/v1.1.1/udocker.py -O /usr/bin/udocker
chmod +x /usr/bin/udocker
udocker --allow-root mkrepo /udocker
udocker --allow-root --repo=/udocker pull c1t4r/sara-server-vre
rmdir /udocker/containers
ln -s /tmp/udocker_containers /udocker/containers

%environment
export PATH="/opt/eclipse:$PATH"

%runscript
if [ "_$1" = _ ]; then
	BASE=/tmp/sara
else
	BASE="$1"
	shift
fi

if [ "$#" -eq 0 ]; then
	GITDIR="$BASE/sara-server"
        if [ -z "${GIT_ARCHIVE_URL}" ]; then 
                GIT_ARCHIVE_URL="git@git.uni-konstanz.de:sara/SARA-server.git"
        fi

	if ! [ -d "$GITDIR" ]; then
		echo "checking out to $GITDIR..."
		mkdir -p "$GITDIR"
		git clone "$GIT_ARCHIVE_URL" "$GITDIR"
		cd "$GITDIR"
		git submodule update --init
	else
		echo "updating $GITDIR..."
		cd "$GITDIR"
		git pull
		git submodule update
	fi
else
	GITDIR="$1"
	echo "using existing working copy in $GITDIR"
	# IMO we shouldn't pull it here
	# the user "owns" that directory, so we better not mess with it
	/bin/echo -e '\e[1;33mplease "git pull" it manually if necessary!\e[0m'
	cd "$GITDIR"
fi

/bin/echo -e '\e[32m' # sometimes, dash sucks!
echo "===================================================="
/bin/echo -en '\e[1m'
echo "IF THIS IS YOUR INITAL RUN, PLEASE DO THE FOLLOWING:"
/bin/echo -e '\e[0;32m'
echo " 1) Import the SARA code as 'Existing Maven Project'"
echo " 2) Open 'bwfdm.sara.Application' and right-click 'Run' -> 'Java Application'"
echo " 3) Wait for Spring to start, connect to 'http://localhost:8080'"
echo " 4) Congrats ... you're done!"
/bin/echo -e '\e[0m'

echo "calling eclipse"
/opt/eclipse/eclipse -configuration "$BASE/eclipseconfig" -data "$BASE"
echo "Exiting Container..."
sync

Collection


View on Datalad

Metrics

key value
id /containers/54r4-sara-server-vre-latest
collection name 54r4/sara-server-vre
branch master
tag latest
commit d462013d18dd0fa3dc34cb7eb358c2693ef7c8ad
version (container hash) 7527a7054b4eb28285b6aa7e5e17757d
build date 2018-03-29T09:26:05.656Z
size (MB) 1569
size (bytes) 698634271
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.