Last active
February 28, 2020 01:18
-
-
Save hugsy/0af6d200a8edf4fa90db0c5cdd8c2847 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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