0dd2ad15af
This patch add a script to create v2plugin rootfs. 1. use local unix socket for v2plugin 2. add config.json for v2plugin 3. Add scripts to build v2plugin rootfs 4. Update devstack to use v2plugin Change-Id: I91d352a963840f33d1d2f9cea17ab6ac777d22bc Related-Bug: #1668486 Partially-Implements: BP docker-v2plugin
40 lines
853 B
Docker
40 lines
853 B
Docker
FROM alpine:3.4
|
|
MAINTAINER Antoni Segura Puimedon "toni@kuryr.org"
|
|
WORKDIR /
|
|
COPY . /opt/kuryr-libnetwork
|
|
RUN \
|
|
apk add --no-cache \
|
|
bash \
|
|
iproute2 \
|
|
openvswitch \
|
|
py-pip \
|
|
python \
|
|
uwsgi-python \
|
|
&& apk add --no-cache --virtual build-deps \
|
|
gcc \
|
|
git \
|
|
linux-headers \
|
|
musl-dev \
|
|
python-dev \
|
|
&& pip install -U pip setuptools \
|
|
\
|
|
&& cd /opt/kuryr-libnetwork \
|
|
&& pip install . \
|
|
&& cd / \
|
|
&& apk del build-deps
|
|
|
|
ENV SERVICE_USER="admin"
|
|
ENV SERVICE_PROJECT_NAME="admin"
|
|
ENV SERVICE_PASSWORD="pass"
|
|
ENV SERVICE_DOMAIN_NAME="Default"
|
|
ENV USER_DOMAIN_NAME="Default"
|
|
ENV IDENTITY_URL="http://127.0.0.1:35357/v3"
|
|
ENV CAPABILITY_SCOPE="local"
|
|
ENV HTTP_SOCKET=":23750"
|
|
ENV LOG_LEVEL="INFO"
|
|
ENV PROCESSES=2
|
|
|
|
VOLUME /var/log/kuryr
|
|
|
|
CMD ["/opt/kuryr-libnetwork/contrib/docker/run_kuryr.sh"]
|