Skip to content

Commit

Permalink
Completely unimportant updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbarney committed May 21, 2021
1 parent dae15a0 commit b51c120
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ env:
- BASE=ruby VERSION=17
- BASE=ruby VERSION=latest


script:
- ./build.sh
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

[Docker Hub](https://hub.docker.com/r/johnbarney/docker-knife/)

This container is in response to not wanting a flood of gem sets or the omnibus installer package installed on my CI system. It uses Docker which is already in use in my CI system to run knife in a container.
This project is in response to not wanting a flood of gems or the omnibus installer package installed on my CI system. This is somewhat mitigated with the release of Chef 17 but the docker use case still makes sense.

Example usage:

`docker run -v $(pwd):/knife johnbarney/docker-knife:16 bootstrap node07`
`docker run --rm -v $(pwd):/knife johnbarney/docker-knife:16 bootstrap node07`

If you are in your chef-repo, this will mount your chef-repo as the working directory. This assumes your knife.rb file is within your chef-repo folder and not in /etc/chef or some other location.

Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GEM=knife

cd "${BASE}"

# Are we building Knife 17 or newer?
# Are we building version 17 or newer?
if [ "${VERSION}" != "latest" ]; then
if [ "${VERSION}" -le 16 ]; then
GEM=chef
Expand All @@ -14,7 +14,7 @@ else
GEM_VERSION=""
fi

# Set tags
# Set tag
if [ "${BASE}" == "ruby" ]; then
DOCKER_TAG="${VERSION}"
else
Expand Down

0 comments on commit b51c120

Please sign in to comment.