Created
December 18, 2015 17:30
-
-
Save schuyler1d/2a1e9b8366eeb2952f33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
#FROM centos:6 | |
WORKDIR /devboot | |
#RUN yum install -y salt-minion | |
#ADD ./master.conf /etc/salt/minion.d/master.conf | |
#ADD ./master.conf /etc/salt/minion.d/master.conf | |
#salt ports | |
EXPOSE 4505 | |
EXPOSE 4506 | |
RUN apt-get install --force-yes -y screen tmux | |
RUN apt-get install --force-yes -y wget | |
RUN wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add | |
- | |
RUN echo deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main >> /etc/apt/sources.list | |
RUN apt-get update -y | |
RUN apt-get install --force-yes -y salt-minion | |
#RUN [ ! -d /etc/salt/minion.d ] && mkdir /etc/salt/minion.d | |
CMD (echo "grains:\n container: docker\n roles:\n ${SALT_GRAIN_ROLE}\nmine_functions:\n network.get_hostname: []\n network.ip_addrs: [eth0]" > /etc/salt/minion.d/grains.conf) && /usr/bin/salt-minion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment