Public | Automated Build

Last pushed: a year ago
Short Description
An image for automatically managing Gemfile dependencies when running Ruby commands.
Full Description

canonicalwebteam/bundler docker image

A docker image for automatically managing ruby dependencies with a bundler Gemfile.

This image will detect changes in the Gemfile and update dependencies before running any commands.


For example, in a Jekyll project:

docker run \
  --tty --interactive                               `# Attach an interactive terminal`  \
  --user $(id -u):$(id -g)                          `# Run everything as the current user`  \
  --volume `pwd`:`pwd` --workdir `pwd`              `# Run in the current working directory`  \
  --volume bundler-dependencies:/bundler            `# Persist ruby dependencies in a docker volume`  \
  --publish 4000:4000                               `# Attach port 4000`  \
  canonicalwebteam/bundler jekyll serve -H  `# Run the jeklyll server`
Docker Pull Command