27 lines
857 B
Docker
27 lines
857 B
Docker
FROM ruby:alpine
|
|
|
|
ENV STOMP_VERSION 1.4.4
|
|
ENV MCO_VERSION 2.12.1
|
|
|
|
RUN gem install stomp --version $STOMP_VERSION --no-ri --no-rdoc \
|
|
&& gem install mcollective-client --version $MCO_VERSION --no-ri --no-rdoc
|
|
|
|
RUN apk add --update git \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
RUN mkdir -p /usr/share/mcollective/plugins/mcollective
|
|
|
|
# Install puppetenvsh plugin
|
|
RUN git clone https://github.com/optiz0r/mcollective-puppetenvsh-agent \
|
|
&& cp -r mcollective-puppetenvsh-agent/application /usr/share/mcollective/plugins/mcollective/ \
|
|
&& cp -r mcollective-puppetenvsh-agent/agent /usr/share/mcollective/plugins/mcollective/ \
|
|
&& cp -r mcollective-puppetenvsh-agent/util /usr/share/mcollective/plugins/mcollective/ \
|
|
&& rm -rf mcollective-puppetenvsh-agent
|
|
|
|
COPY ./client.cfg /root/.mcollective
|
|
|
|
COPY ./ca.crt /root/ca.pem
|
|
|
|
ENTRYPOINT [ "mco" ]
|
|
CMD [ "--help" ]
|