Ruby on Rails 6.x in Docker
DockerFile + Docker-compose file to setup Ruby on Rails enviroment.
Includes Sidekiq server, Redis, Postgres, Prometheus, Grafana, Elasticsearch, Kibana, Selenium Browser test setup, Postgres DB adminer
- Build rails Image. Use build.sh. You can use docker pull maximmonin/rails instead.
- Run prepare.sh to extract rails app directory from rails docker image to ./app
- Copy .env-example to .env and change to your site
- Start containters start.sh
- Postgres db will be created on first run.
Run run_tests.sh to run rails test
Run run_tests_system.sh to run system browser tests through selenium and rails-test container with rails-test db
Run run_webpack.sh to compile java scripts with webpack
Run run_precompile.sh to precompile assets for production use
Run run_shell.sh to enter inside container
Run run_elastic_indexes.sh to recreate all model's search indexes and import data to elasticsearch