Public | Automated Build

Last pushed: 5 months 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.

usage

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 0.0.0.0  `# Run the jeklyll server`
Docker Pull Command
Owner
canonicalwebteam

Comments (0)