Skip to content

Instantly share code, notes, and snippets.

@hugsy
Last active February 28, 2020 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugsy/0af6d200a8edf4fa90db0c5cdd8c2847 to your computer and use it in GitHub Desktop.
Save hugsy/0af6d200a8edf4fa90db0c5cdd8c2847 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
if [ -d ~/gef-docker ]; then
echo "[+] Updating the image..."
cd ~/gef-docker
git pull
else
echo "[+] Getting the image..."
cd ~
git clone https://github.com/hugsy/gef-docker.git
cd ~/gef-docker
fi
docker build -t gef-docker .
cd -
if [ ! -f ~/go/bin/gotty ]; then
echo "[+] Getting gotty..."
go get github.com/yudai/gotty
fi
echo "[+] Starting gotty..."
~/go/bin/gotty docker run \
--network=none \
--security-opt=no-new-privileges:true \
--ulimit nofile=128 \
--ulimit nproc=128 \
-it gef-docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment