Draft
Conversation
f2f379a to
b673572
Compare
palkan
requested changes
May 28, 2025
Comment on lines
+67
to
+72
| COPY Gemfile Gemfile.lock ./ | ||
| RUN gem update --system --quiet && \ | ||
| gem install --no-document bundler && \ | ||
| bundle install --jobs 4 --retry 3 | ||
|
|
||
| FROM gems AS dev |
Member
There was a problem hiding this comment.
We don't need to run bundle install in development when building a container; that happens later and uses volumes. Only gem update is required.
See the example multi-env Dockerfile: https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development#from-development-to-production
ce3451d to
bccaaea
Compare
|
If I do t need massive scale, and just want to reliably use actioncable in a chrome extension, do I need production any cable, or should I be good with a kamal accessory? |
Member
|
Hey @adenta, It sounds like in your case using AnyCable Thruster could be the simplest option. Check it out. Do you use AnyCable RPC? You may also consider running it in the embedded mode or via HTTP, so no additional services required. |
1358dfe to
2e5f285
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Add multi‑host deployment of AnyCable Rails Demo with:
Railsweb,AnyCable RPC, andAnyCable‑Goprocesses across multiple hostsgrpc-list://).envand Kamal secretsChanges
Multi‑stage Docker build
Kamal 2 deployment
config/deploy.ymldeclaresweb,rpc,anycable‑go,db, andredisroles/accessories.kamal/hooks/pre-app-bootstops existingrpccontainers to avoid port collisions.kamal/secrets.samplemapsRAILS_MASTER_KEY,POSTGRES_PASSWORD,DATABASE_URL, andREDIS_PASSWORDEnvironment management
.env.samplelisting all parametersdotenvto load.envindeploy.ymlEntrypoint script (
bin/docker-entrypoint)rails db:prepareon server startHealthcheck endpoint
/upreturns HTTP 200 for Kamal’s proxy health checksThis also leverages AnyCable Go 1.6.2’s
grpc-list://feature to pass a static list of RPC endpointsSetup and Deploy: