How to use Dev Containers in Rails 7.2

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 18

  • @anthonypetruzzi158
    @anthonypetruzzi158 5 місяців тому +5

    Thank you for putting this on 💖💖💖💖💖💖

  • @meghanadhanks9104
    @meghanadhanks9104 5 місяців тому +2

    Yeah, docker devcontainer is very convenient for development. We are using it our project. But little bit work involved while kicking it off

  • @ChrisSlade1
    @ChrisSlade1 5 місяців тому +2

    You must install ruby and the latest rails on your local machine to create a new project. Is there a way around that?

    • @GorailsTV
      @GorailsTV  5 місяців тому +1

      Yep! github.com/rails/rails-new

  • @torvic99
    @torvic99 Місяць тому

    Where is the repository?

  • @ryandsouza2962
    @ryandsouza2962 5 місяців тому

    If I assume correctly, the devcontainer terminal opens directly inside the docker container. How would you manage system specific things like AWS credentials for example?

    • @GorailsTV
      @GorailsTV  5 місяців тому +2

      You can mount other directories from the host into the container like your ~/.aws folder. There's several blog posts you can find on it like this: theindiecoder.cloud/posts/use-aws-credentials-in-a-dev-container/

  • @lealaguette
    @lealaguette 2 місяці тому

    Thank you for your very helpful video ! I tried to use the command "rails devcontainer" on my current project in order to run my project on my new computer. But I have the errror : "rbenv: version `ruby-2.5.3' is not installed" and I can't install this version of ruby on my new computer. What can i do?

  • @samellard4342
    @samellard4342 5 місяців тому

    Hey Chris, thanks as always. Does this have any implication on pushing to or hosting in production?

    • @GorailsTV
      @GorailsTV  5 місяців тому +1

      It's only for development. Completely separate from production. 👍

    • @samellard4342
      @samellard4342 5 місяців тому

      @@GorailsTV gotcha, thanks!

  • @davidteren8717
    @davidteren8717 5 місяців тому +1

    OrbStack offers improved performance compared to Docker desktop.

  • @jonathanagah2865
    @jonathanagah2865 5 місяців тому +1

    I don't know why I always find your contents confusing. How are you able to run rails dev containers without issues? How did you arrive at that window?

  • @darkpill
    @darkpill 5 місяців тому

    Docker is slow on the Mac.

    • @GorailsTV
      @GorailsTV  5 місяців тому +1

      Try an alternative like OrbStack

    • @darkpill
      @darkpill 5 місяців тому

      @@GorailsTV I will look into it thanks!