Skip to content

Educational project with Ruby on Rails, Docker and Trailblazer

Notifications You must be signed in to change notification settings

1lyan/docker_on_rails

Repository files navigation

This is a Test Project with Ruby on Rails, Docker and Trailblazer

  • Ruby version 2.6.5

  • Rails version 6.0.2

  • Local deployment

  1. Install docker and run docker desktop locally.
  2. docker build -t docker_on_rails .
  3. docker-compose up
  4. docker-compose run web rails db:create
  5. docker-compose run web rails db:migrate
  6. docker-compose run web rails db:migrate RAILS_ENV=test
  7. Run tests: docker-compose run web rspec
  8. Run the app in browser
  • How to use debugger with docker
  1. In docker-compose.yml, in services -> web set "tty: true" and "stdin_open: true"
  2. Put debugger in code
  3. docker ps
  4. Find CONTAINER_ID in docker desktop app (looks like "421f5718174d") and copy-paste it
  5. docker attach CONTAINER ID
  • Useful resources

About

Educational project with Ruby on Rails, Docker and Trailblazer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published