I have to say this is by far the easiest Docker example I've ever had the pleasure of working with. Seriously, I got zero error the first time simply by following the instructions. Thank you for providing such a great resource. I plan on using it to learn all about Dockerizing Rails. Cheers Nick!
@NickJanetakis Жыл бұрын
No problem, happy to hear it all worked out in the end.
@Alimenteocerebro Жыл бұрын
Fantastic project and video. How hard it will be to use MRSK with this repo?
@NickJanetakis Жыл бұрын
Hi, it shouldn't be much of a problem because MRSK doesn't use Docker Compose. It only focuses on building and running containers which is what my project does too. You may only need to think about how to deal with serving production assets. My project handles all of that for you, but it depends on volume mounting static files out of a container so something like nginx can read them on your Docker host (complete with support for persisting user uploads). MRSK won't set any of that up for you.
@Alimenteocerebro Жыл бұрын
I'm playing with this project for the past week and it's incredible. Now I want to use Kubernetes to deploy to Digital Ocean. Is there any chance of a video depicting the deployment part? :D
@NickJanetakis Жыл бұрын
Hi, Thanks. A Kubernetes deployment video would end up being over 10 hours. That won't make its way to KZbin sorry.
@danimusbar Жыл бұрын
I love it, tks Sir keep up 👍
@lorem_ipsumm Жыл бұрын
Great video, I appreciate your effort ! I have a question about the response time: When I cloned your repo and just visited the localhost, dev tools showed ~2s for loading the home page, where on the other hand when I launched some sample application it was around 80ms(home page as well). Is there a reason for that ? Or am I missing something/ set the app incorrectly 🤔
@NickJanetakis Жыл бұрын
Thanks. When you say "some sample application", was it the same app but not in Docker or did you load a completely different app in Docker?
@lorem_ipsumm Жыл бұрын
@@NickJanetakis completely different(basic rails new with tailwind). I am just wondering if it will affect all the response times in the future. When some specific logic will require ~400ms for processing, the initial ~2s will always be there, adding up 🤔
@NickJanetakis Жыл бұрын
@@lorem_ipsumm I haven't experienced this 2s delay and I work with a lot of folks who haven't as well. What OS are you using and how did you install Docker?
@simomed5002 Жыл бұрын
I see a lot of people using puma these days, do they ever consider writing thread safe code? I still use passenger to run my rails apps, and when I see this, I am wondering if I am missing something, should I just put a puma server and write my code like I was always writing it?
@NickJanetakis Жыл бұрын
It's up to you. I haven't encountered thread safety issues with Rails and popular Rails libraries in many many years. Sidekiq also uses threads too, the ecosystem IMO has been thread safe for as long as I can remember.
@valik-stu Жыл бұрын
Thank you for the guide but please clean a bit your speech from fillers)
@NickJanetakis Жыл бұрын
It was a live demo video with no script or notes. That's how I speak, sorry.
@valik-stu Жыл бұрын
@NickJanetakis no guilty or smth, really appreciated this video, just a small advice so you will notice it later)