2020-02-17 01:26:26 +00:00
|
|
|
FROM saltstack/salt
|
|
|
|
|
|
|
|
ARG SALT_USER
|
|
|
|
ARG SALT_PASS
|
|
|
|
|
|
|
|
RUN adduser --no-create-home --disabled-password --gecos "" ${SALT_USER} && \
|
2020-02-17 16:33:47 +00:00
|
|
|
echo "${SALT_USER}:${SALT_PASS}" | chpasswd
|
2020-02-17 01:26:26 +00:00
|
|
|
RUN apk add gettext
|
|
|
|
|
2020-02-17 16:33:47 +00:00
|
|
|
COPY ./docker/salt/api.conf /etc/salt/master.d/api.conf.tmp
|
2020-02-17 01:26:26 +00:00
|
|
|
RUN envsubst '\$SALT_USER' < /etc/salt/master.d/api.conf.tmp > /etc/salt/master.d/api.conf && \
|
2020-02-17 16:33:47 +00:00
|
|
|
rm /etc/salt/master.d/api.conf.tmp
|