Container with chefDK and git pre-installed. Can use "knife" and "berks" commands in the container.
597
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.
Content type
Image
Digest
sha256:481327ce2…
Size
226.2 MB
Last updated
over 10 years ago
docker pull kayvan/docker_chefdk