Sign inSign up

kayvan/docker_chefdk

By kayvan

Updated over 10 years ago

Container with chefDK and git pre-installed. Can use "knife" and "berks" commands in the container.

Image
0

597

kayvan/docker_chefdk repository overview

ChefDK in a Docker container

Simple container to include chefdk so you can isolate your chef workstation work in a container.

Set up your $HOME/.chef directory with your keys from the chef server, then you can run the container with a command like this:

docker run --rm -it \
  -v $HOME/.chef:$HOME/.chef \
  -v $HOME/.ssh:$HOME/.ssh \
  -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group \
  -u 1000:1000 -e HOME=$HOME -w $HOME kayvan/docker_chefdk bash

You can now use berks and knife commands in the container.

Add the host directories you want to access by adding -v options.

For example, if you want your in-contianer ~/.berkshelf to persist, then add -v /some/directory/berkshelf:$HOME/.berkshelf to the options you pass in to docker.

Based on https://github.com/spheromak/docker_chefdk

Tag summary

Content type

Image

Digest

sha256:481327ce2

Size

226.2 MB

Last updated

over 10 years ago

docker pull kayvan/docker_chefdk