Getting Up and Running
Three small steps and we’re done with our planning. Now it’s time to get things up and running. The first thing we need to do is install Docker itself. You can get it at the Docker website.[93]
Next we use docker to build our image for the web service with a single command:
| | $ docker compose build |
This command will take a while. It will download an image. And most of the remaining time will be spent installing gems. If you run the same command again, it’ll run quickly as nothing needs to be redone. If you change any file other than your Gemfile, the image will be updated quickly with the change. If you change the Gemfile, run bundle update, and then rerun docker compose build, it’ll take longer as it will ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access