Initial version

This commit is contained in:
2018-06-25 23:56:10 +01:00
commit af6a95746e
3 changed files with 96 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
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" ]