mirror of https://github.com/n1nj4sec/pupy.git
22 lines
374 B
Bash
Executable File
22 lines
374 B
Bash
Executable File
#!/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
|