Skip to content

Instantly share code, notes, and snippets.

@abhilash1in
Last active October 3, 2018 03:45
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 abhilash1in/a2f1c7f533cafca6fa292bccff64eb96 to your computer and use it in GitHub Desktop.
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
#!/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