-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (23 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM hypriot/rpi-alpine-scratch:v3.4
RUN apk upgrade --update-cache libssl1.0
RUN apk add 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 gunzip mcollective.tar.gz
RUN tar xf mcollective.tar
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
RUN rm -rf mcollective
RUN rm -rf var/cache/apk/*
ENTRYPOINT ["mcollectived", "--no-daemonize"]