Skip to content

Instantly share code, notes, and snippets.

@andrewwebber
Last active October 12, 2016 12:48
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 andrewwebber/abcb2f07e27c8227a3bd2aaf1f8c51bf to your computer and use it in GitHub Desktop.
Save andrewwebber/abcb2f07e27c8227a3bd2aaf1f8c51bf to your computer and use it in GitHub Desktop.
FROM ubuntu:trusty
RUN apt-get update
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
RUN mkdir -p /etc/apt/sources.list.d
RUN echo deb http://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
RUN apt-get update
RUN apt-get install -y docker-engine=1.10.3-0~trusty
RUN apt-get install -y python-jinja2
RUN apt-get install -y curl python-dev libffi-dev libssl-dev gcc git vim ansible wget python-pip
RUN apt-get install -y openssl
RUN wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
RUN tar xzvf Python-3.5.0.tgz
RUN cd Python-3.5.0 && ./configure && make && make install
RUN ln -fs /opt/Python-3.5.0/Python /usr/bin/python3.5
RUN pip install -U ansible==2.0.0
RUN pip install -U python-novaclient
RUN pip install -U python-neutronclient
RUN pip install -U python-openstackclient
RUN apt-get install qemu-utils -y
RUN git clone https://git.openstack.org/openstack/kolla
ENTRYPOINT ["/bin/sh", "-c"]
CMD ["bash"]
docker build -t kolla-build-container .
docker run --rm -it --net=host -v /run/docker.sock:/var/run/docker.sock kolla-build-container bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment