Skip to content

Instantly share code, notes, and snippets.

@vovimayhem
Last active August 30, 2015 20:38
Show Gist options
  • Save vovimayhem/9836288576709adc74fb to your computer and use it in GitHub Desktop.
Save vovimayhem/9836288576709adc74fb to your computer and use it in GitHub Desktop.
My first try to a web-based shell script
#! /bin/bash
DIR_ON_HOST=${PWD}
APP_NAME=${PWD##*/}
echo $DIR_ON_HOST;
echo $APP_NAME;
docker run --rm -v $(pwd):/app vovimayhem/app-dev:mri-2.2.3 sh -c "gem install rails --no-rdoc --no-ri && rails new ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment