#!/bin/sh THIS=$0 PUPY=`dirname "$0"` PUPY=`readlink -f ${PUPY}`/pupy WORKDIR=${1:-$HOME/pupy} GID=${GID:-`id -g`} TAG=${TAG:-"latest"} set -e if [ ! -d ${WORKDIR} ]; then mkdir -p ${WORKDIR} fi echo "[+] Workdir: ${WORKDIR} [UID=${UID} GID=${GID}]" cd ${PUPY} export PUPY UID GID WORKDIR TAG docker-compose -f conf/docker-compose.yml up -d exec docker attach pupy