-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved from Debian Jessie to Alpine 3.5.
Image shrinked from 161.6 MB to 30.93 MB.
- Loading branch information
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
FROM debian:jessie | ||
FROM alpine:3.5 | ||
|
||
RUN apt-get update -q | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -qy mcollective file | ||
RUN apt-get clean | ||
RUN rm -rf /var/lib/apt | ||
RUN apk add --update ruby ruby-json ca-certificates wget | ||
RUN gem install --no-rdoc --no-ri stomp | ||
|
||
RUN wget -q https://github.com/puppetlabs/marionette-collective/archive/2.9.1.tar.gz \ | ||
-O mcollective.tar.gz | ||
RUN tar xf mcollective.tar.gz | ||
RUN mv /marionette-collective-2.9.1 mcollective | ||
|
||
RUN mkdir -p /etc/mcollective | ||
RUN mkdir -p /usr/share/mcollective/plugins | ||
|
||
RUN cp /mcollective/etc/facts.yaml.dist /etc/mcollective/facts.yaml | ||
RUN cp /mcollective/etc/*.erb /etc/mcollective | ||
|
||
RUN cp /mcollective/etc/server.cfg.dist /etc/mcollective/server.cfg | ||
RUN cp /mcollective/etc/client.cfg.dist /etc/mcollective/client.cfg | ||
RUN sed -i 's/^libdir *= *.*$/libdir = \/usr\/lib\/ruby\/vendor_ruby/g' /etc/mcollective/*.cfg | ||
|
||
RUN cp -r /mcollective/lib/* /usr/lib/ruby/vendor_ruby | ||
|
||
RUN cp /mcollective/bin/mcollectived /usr/sbin/ | ||
RUN cp /mcollective/bin/mco /usr/bin/ | ||
|
||
RUN rm mcollective.tar.gz | ||
RUN rm -rf mcollective | ||
RUN rm -rf var/cache/apk/* | ||
|
||
ENTRYPOINT ["mcollectived", "--no-daemonize"] | ||
|
||
CMD mcollectived --no-daemonize |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# docker-mcollectived | ||
Basic Debian with just mcollectived added. | ||
Alpine with just mcollectived added. |