Skip to content

Instantly share code, notes, and snippets.

@AgentO3
Forked from jpetazzo/Dockerfile
Created January 11, 2014 06:33
Show Gist options
  • Save AgentO3/8367805 to your computer and use it in GitHub Desktop.
Save AgentO3/8367805 to your computer and use it in GitHub Desktop.
FROM ubuntu
RUN sed -i 's/main/main universe multiverse/' /etc/apt/sources.list
RUN apt-get update -q
RUN apt-get install -qy build-essential python-dev python-pip curl
#RUN apt-get install -qy autoconf
RUN pip install ansible
RUN mkdir -p /etc/ansible
RUN curl -L https://github.com/gc3-uzh-ch/ansible-playbooks/archive/cloud.tar.gz | tar -zxf-
RUN /bin/echo -e "[slurm_master]\nlocalhost" > /etc/ansible/hosts
RUN cp /bin/true /bin/hostname
RUN cd ansible-playbooks-cloud && ansible-playbook site.yml -c local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment