6f6ff11645
Up until this patch, the Docker container for the Kuryr libnetwork daemon was part of contrib and was being built by checking out the latest master from github. That is not very helpful when developers want to build the container to run their latest changes. With this change, we move the Docker building to the root of the repo so that it can use the current state of the repo to build and update the README.rst to contain the information relative to building and using the container. Change-Id: Ie9032d62c73d873a29cabe84c64a19df13fdb749 Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
40 lines
842 B
Docker
40 lines
842 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 LOG_LEVEL="INFO"
|
|
ENV PROCESSES=2
|
|
ENV THREADS=2
|
|
|
|
VOLUME /var/log/kuryr
|
|
|
|
CMD ["/opt/kuryr-libnetwork/contrib/docker/run_kuryr.sh"]
|