Skip to content

Instantly share code, notes, and snippets.

@dmitryrck
Last active April 15, 2017 17:24
Show Gist options
  • Save dmitryrck/c9c570996166e2df6fe1acffc8c4bce6 to your computer and use it in GitHub Desktop.
Save dmitryrck/c9c570996166e2df6fe1acffc8c4bce6 to your computer and use it in GitHub Desktop.
Zero to Up and Running a Rails Project only using Docker - bin/setup
#!/bin/bash
set -xe
# Uncomment this line and ensure your config/database.yml.sample is ready to run with docker.
# cp config/database.yml.sample config/database.yml
docker-compose run --rm -u root web bash -c "mkdir -p /bundle/vendor && chown railsuser /bundle/vendor"
docker-compose run --rm web bundle install
docker-compose run --rm web bundle exec rake db:setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment