Skip to content

Instantly share code, notes, and snippets.

@schuyler1d
Created December 18, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schuyler1d/2a1e9b8366eeb2952f33 to your computer and use it in GitHub Desktop.
Save schuyler1d/2a1e9b8366eeb2952f33 to your computer and use it in GitHub Desktop.
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