Skip to content

Instantly share code, notes, and snippets.

@davidboothe
Last active February 1, 2017 02:48
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 davidboothe/0ac1b48da94ae8cf5c7430b503236b66 to your computer and use it in GitHub Desktop.
Save davidboothe/0ac1b48da94ae8cf5c7430b503236b66 to your computer and use it in GitHub Desktop.
Notes and commands from Deploying Rails with Docker, Kubernetes and ECS
# Start a new rails api project in your current directory
$ docker run -it --rm --user "$(id -u):$(id -g)" -v "$PWD":/usr/src/app -w /usr/src/app \
rails rails new --skip-bundle --api --database postgresql
$ cd webapp
$ docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.4 bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment