https://github.com/genome/genome
Revision f6bccf12e4affbdd5a188c43ba1f89566dee4358 authored by Thomas B. Mooney on 11 October 2018, 20:26:25 UTC, committed by Thomas B. Mooney on 11 October 2018, 20:47:28 UTC
1 parent 8df53f1
Raw File
Tip revision: f6bccf12e4affbdd5a188c43ba1f89566dee4358 authored by Thomas B. Mooney on 11 October 2018, 20:26:25 UTC
Use the Cromwell API to get outputs to stage to the results dir.
Tip revision: f6bccf1
mount.sh
#!/bin/bash

# This will mount VBox shared folders.
# It assumes the following names have been added to VBox:
#   gscmnt
#   var
#   lsf

if [ "$UID" -ne "0" ]
then
  echo "You must be root."
  exit 1
fi

USERUID=$1

if [ -z "$1" ]
then
  echo "You must set the first arg to your UID."
  echo "If you intend to use LSF, it must be the same"
  echo "as on your workstation (e.g. echo \$UID)"
  exit 1
fi

if [ ! -d "/gscmnt" ]
then
  mkdir /gscmnt
fi
mount -t vboxsf gscmnt /gscmnt -o uid=$USERUID,gid=100,umask=007

if [ ! -d "/gsc/var" ]
then
  mkdir -p /gsc/var
fi
mount -t vboxsf var /gsc/var -o uid=$USERUID,gid=100,umask=007

if [ ! -d "/usr/local/lsf" ]
then
  mkdir -p /usr/local/lsf
fi
mount -t vboxsf lsf /usr/local/lsf -o uid=$USERUID,gid=100,umask=007

if [ ! -d "/gsc/scripts" ]
then
  mkdir -p /gsc/scripts
fi
mount -t vboxsf scripts /gsc/scripts -o uid=$USERUID,gid=100,umask=007
back to top