Via homebrew
brew cask install docker
https://docs.docker.com/engine/install/debian/
git clone [email protected]:powerhome/power-web-development-interview.git
cd power-web-development-interview
bin/bootstrap
bin/start
- Verify it is running http://localhost:3000
All of the dependencies to build and run the rails application are
included in the web
service's image - named
power-web-development-interview_web
. To run typical bin/rails
commands inside the container use the general form:
docker-compose run --rm web bash -lc "<rails-command>"
We've provided binstubs for common tasks as a convenience:
Tears down any exiting images, containers, networks, etc. and sets everything up from scratch.
bin/bootstrap
bin/deps
Installs the application's Ruby and JavaScript dependencies.
Analogous to: bin/bundle && bin/yarn
bin/shell
Starts a Bash shell inside the application container and establishes a TTY connection to it from the user's terminal.
Useful for things like generating migrations, etc.
bin/console
Starts a Rails console container and establishes a TTY connection to it from the user's terminal.
Analogous to: bin/rails console
bin/start
Starts the web application container and its supporting services - RDBMS, etc.
Analogous to: bin/rails server
bin/stop
Stop the web application container and its supporting services - RDBMS, etc.
bin/cleanup
Destroys all docker resources for the application and services.