[已放弃] 适用于 Digital Ocean 的易用 Rails 以及经典的 Rails 堆栈: Puma、Kubernetes、Sidekiq、Postgres、Action Cable、Webpacker。Helm 3 处于测试阶段
[已放弃] 适用于 Digital Ocean 的易用 Rails 以及经典的 Rails 堆栈: Puma、Kubernetes、Sidekiq、Postgres、Action Cable、Webpacker。Helm 3 处于测试阶段
:construction: This setup is a work in progress :construction:
An attempt at creating a standardized Docker/Kubernetes-Helm/GitHub Actions setup for use with Rails projects. A version of this setup (that is little bit further ahead) is now used in production for services available to Le Wagon teachers, students, and alumni.
A standard Action Cable chat application (Rails 6 + Stimulus) that uses twitter-text gem to extract free-formed URLs out of text and generate Open Graph previews for links. The dependency was chosen consciously, as it requires an external system library to function (libidn11), which makes it a perfect case for Docker.
It requires Sidekiq, Redis, and PostgreSQL to run, which represents the standard deployment stack of production Rails apps.
git push origin master or a PR merge on GitHubBy constantly migrating legacy applications to this setup and starting new ones with the same setup in mind we make sure that all common production bugs will be squashed before we can fully automate the generation of charts and configuration.
We use dip by Misha Merkushin at Evil Martians to achieve a "classic CLI" feel while working with Docker under the hood.
gem install dipdip provision to build all necessary images and setup the local DBdip up -d to run all services in the background: app, rails, sidekiq, webpacker (runs webpack-dev-server for JS live reload), postgres, redis. Go to localhost:3000 :tada:dip rails c to visit console.dip down to stop the music and go home.If you need to change project dependencies—run dip bundle and/or dip yarn after any changes to Gemfile or package.json.
Check out dip.yml for other common shortcuts.
Alternatively, you can launch dip rails s, dip sidekiq, and dip webpacker in respective tabs. This will allow for easier debugging with byebug (no need to attach to running Docker processes).
make upgrade-dev from project repo to deploy the release into the cluster.:warning: You don't have to use Quay as Docker image backend, in that case you can alter Makefile push commands to your own image hosting provider.
deploy.yaml for details.:pray: Suggestions and PRs are welcome!
暂无开放 Issues,或尚未同步最近议题。