Skip to content

Instantly share code, notes, and snippets.

@mnaser
Created April 9, 2018 15:40
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 mnaser/30a66333072d3bf52f662397c1cd58a4 to your computer and use it in GitHub Desktop.
Save mnaser/30a66333072d3bf52f662397c1cd58a4 to your computer and use it in GitHub Desktop.
FROM centos:7.4.1708
# Bootstrap container
RUN yum -y install git which
# Install OpenStack Ansible
ARG OSA_RELEASE
RUN git clone -b ${OSA_RELEASE} https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible
WORKDIR /opt/openstack-ansible
RUN scripts/bootstrap-ansible.sh
# Install missing RPMs
RUN yum -y install python-prettytable python-yaml
# Clean-up image
RUN rm -rfv /root/.ssh/id_*
# Volumes
VOLUME /etc/openstack_deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment