Last active
October 3, 2018 03:45
-
-
Save abhilash1in/a2f1c7f533cafca6fa292bccff64eb96 to your computer and use it in GitHub Desktop.
Shell script to run RequestBin local server on a linux machine - https://github.com/Runscope/requestbin
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 | |
# https://github.com/Runscope/requestbin | |
sudo apt-get update | |
mkdir $HOME/scripts | |
curl -fsSL https://get.docker.com -o $HOME/scripts/get-docker.sh | |
sudo sh $HOME/scripts/get-docker.sh | |
# Replace 'ubuntu' with your username | |
sudo usermod -aG docker ubuntu | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
git clone git://github.com/Runscope/requestbin.git $HOME/requestbin | |
find $HOME/requestbin -name docker-compose.yml -exec sed -i "s/8000:8000/80:8000/g" {} \; | |
cd $HOME/requestbin | |
sudo docker-compose build | |
sudo docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment