-
Notifications
You must be signed in to change notification settings - Fork 9
Run with Docker
Install docker and docker-compose
sudo apt-get install docker docker-compose
docker-compose up
bin/docker rspec
Building api documentation is pretty easy, just run:
bin/docker rails api:doc:v1
and find it into:
./public/api/docs/v1/index.html
bin/docker rails c
You may set up and run the project via DIP (Docker Interaction Process)
You can use Homebrew on macOS (or Linux).
Today Homebrew tap for DIP is located at https://github.com/bibendi/homebrew-dip
brew tap bibendi/dip
brew install dip
gem install dip
dip --help
dip SUBCOMMAND --help
List all available run commands.
dip ls
bash # Open the Bash shell in app's container
rails # Run Rails command
rails s # Run Rails server at http://localhost:3000
To run single commands use the ones defined within the interaction
section in dip.yml
You can call dip provision
command to run predefined steps within this instruction
dip compose up -d service_name
dip compose down --volumes
dip compose up -d --build server_app
(or docker-compose up ...
)
You can check all containers and their statuses docker ps -a
Find more about project and its options following DIP page
RubyGarage is a leading software development and consulting company in Eastern Europe. Our main expertise includes Ruby and Ruby on Rails, but we successfully employ other technologies to deliver the best results to our clients. Check out our portfolio for even more exciting works!