zun/contrib/quick-start/Dockerfile
caishan 318a788e38 Add Dockerfile
Add this dockerfile for developer and contributor, those who can
build their own developement environment easily and quickly. Without
any worry about the python packages incompatible.

Change-Id: Ie045c6221004f60a3af73f53b1370a3e431e96e0
2018-05-10 01:49:57 -07:00

31 lines
604 B
Docker

FROM alpine:3.7
WORKDIR /opt
RUN apk update \
&& apk add --no-cache\
bash \
iproute2 \
openvswitch \
py-pip \
python \
uwsgi-python \
libffi-dev \
openssl-dev \
&& apk add --no-cache --virtual build-deps \
gcc \
git \
linux-headers \
musl-dev \
python-dev \
&& pip install -U pip setuptools \
\
&& git clone https://github.com/openstack/zun \
&& cd /opt/zun \
&& pip install -r ./requirements.txt \
&& python setup.py install \
&& cd / \
&& apk del build-deps
VOLUME /var/log/zun
VOLUME /etc/zun