#!/bin/sh

if [ $# -ne 1 ]
then
    echo "Usage:"
    echo "./run.sh <SRPM URL>"
    exit 1
fi

SRPMS_MOUNT_DIR=/tmp/docker-SRPMS

SRPM=$1
SRPM_NAME=`basename $SRPM`

mkdir -p /tmp/docker-SRPMS
cp $SRPM $SRPMS_MOUNT_DIR

docker run -e SRPM_NAME=$SRPM_NAME -i --rm=true -t -v $SRPMS_MOUNT_DIR:/mnt/docker-SRPMS xenserver/xenserver-build-env

#!/bin/sh

if [ $# -ne 1 ]
then
    echo "Usage:"
    echo "./run.sh <SRPM URL>"
    exit 1
fi

SRPMS_MOUNT_DIR=/tmp/docker-SRPMS/`uuidgen`

SRPM=$1
SRPM_NAME=`basename $SRPM`

mkdir -p $SRPMS_MOUNT_DIR
cp $SRPM $SRPMS_MOUNT_DIR

docker run -e SRPM_NAME=$SRPM_NAME -i --rm=true -t -v $SRPMS_MOUNT_DIR:/mnt/docker-SRPMS xenserver/xenserver-build-env

Make a new mount directory for each SRPM
Make a new mount directory for each SRPM

Signed-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>
