mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-07 04:51:39 +00:00
20 lines
655 B
Docker
20 lines
655 B
Docker
FROM ubuntu:20.04
|
|
MAINTAINER "SaltStack Team"
|
|
|
|
# Bootstrap script options: install Salt Master by default
|
|
ENV BOOTSTRAP_OPTS='-M -x python3'
|
|
# Version of salt to install: stable or git
|
|
ENV SALT_VERSION=stable
|
|
|
|
COPY bootstrap-salt.sh /tmp/
|
|
|
|
# Prevent udev from being upgraded inside the container, dpkg will fail to configure it
|
|
RUN echo udev hold | dpkg --set-selections
|
|
# Upgrade System and Install Salt
|
|
RUN sudo sh /tmp/bootstrap-salt.sh -U -X -d $BOOTSTRAP_OPTS $SALT_VERSION && \
|
|
apt-get clean
|
|
RUN /usr/sbin/update-rc.d -f ondemand remove; \
|
|
update-rc.d salt-minion defaults && \
|
|
update-rc.d salt-master defaults || true
|
|
|
|
EXPOSE 4505 4506
|