Last active
November 9, 2017 20:00
-
-
Save nicklewis/378e644b9ea956889df0095992d15751 to your computer and use it in GitHub Desktop.
dockerfile for bolt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
RUN apk --update add ruby ruby-json ruby-io-console openssh gcc ruby-dev make musl-dev libffi-dev curl tar | |
RUN gem install bolt --no-ri --no-rdoc | |
WORKDIR /var/lib/bolt | |
RUN mkdir package service | |
RUN curl -s https://forge.puppet.com/v3/files/puppetlabs-package-0.1.5.tar.gz | tar zxf - --strip-components=1 -C package --wildcards '*/tasks' | |
RUN curl -s https://forge.puppet.com/v3/files/puppetlabs-service-0.1.3.tar.gz | tar zxf - --strip-components=1 -C service --wildcards '*/tasks' | |
RUN apk del make gcc ruby-dev musl-dev libffi-dev curl tar | |
ENTRYPOINT ["bolt", "--modulepath", "/var/lib/bolt"] | |
# Example: | |
# docker build . -t bolt --squash | |
# docker run -t -i -v $(dirname $SSH_AUTH_SOCK):$(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK bolt --help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment