Using Bundler via Docker on mac

less than 1 minute read

Published:

Ruby bundler is a convenient tool to manage the Ruby environments. This website, for example, is built with Jekyll.

While one can push the changes to GitHub repo and let them render the updated contents, it would be convenient if we can check the changes on a local computer.

Using a Dockerlized version of Bundle, one can run the followings:

$ docker run -it -p 4000:4000 --mount type=bind,src=$(pwd),dst=/app docker-bundler:latest bash
# bundle clean ; bundle install ; bundle exec jekyll liveserve

reference