2015-07-08 14:26:36 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for salt-master
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM debian:jessie
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2015-07-08 14:26:36 +02:00
|
|
|
|
|
|
|
RUN apt-get update \
|
2015-07-09 10:13:29 +02:00
|
|
|
&& apt-get install -y curl jq vim-tiny \
|
2015-07-08 15:21:05 +02:00
|
|
|
&& curl -sSL https://bootstrap.saltstack.com | bash -s -- -M -N -S -X \
|
2015-07-08 15:19:17 +02:00
|
|
|
&& apt-get install -y salt-ssh \
|
2015-07-09 10:13:29 +02:00
|
|
|
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \
|
|
|
|
&& pip install httpie ipython \
|
2015-07-08 14:26:36 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2015-07-08 14:31:17 +02:00
|
|
|
VOLUME /etc/salt /srv/salt
|
2015-07-08 14:26:36 +02:00
|
|
|
EXPOSE 4505 4506
|
2015-07-08 14:31:17 +02:00
|
|
|
WORKDIR /srv/salt
|
2015-07-08 14:26:36 +02:00
|
|
|
|
|
|
|
CMD salt-master --log-level warning --log-file /dev/stdout
|