663300ba91
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html Change-Id: I16c4cc72870e1a2d495a2385b0cd21f8969ad474
27 lines
869 B
Docker
27 lines
869 B
Docker
FROM fedora:30
|
|
LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Michał Dulko<mdulko@redhat.com>"
|
|
|
|
ARG UPPER_CONSTRAINTS_FILE="https://releases.openstack.org/constraints/upper/master"
|
|
|
|
RUN dnf update -y \
|
|
&& dnf install -y --setopt=tsflags=nodocs python36 libstdc++ \
|
|
&& dnf install -y --setopt=tsflags=nodocs gcc git
|
|
|
|
COPY . /opt/kuryr-kubernetes
|
|
|
|
RUN python3.6 -m ensurepip \
|
|
&& python3.6 -m pip install -c $UPPER_CONSTRAINTS_FILE --no-cache-dir /opt/kuryr-kubernetes \
|
|
&& dnf -y history undo last \
|
|
&& dnf clean all \
|
|
&& rm -rf /opt/kuryr-kubernetes \
|
|
&& groupadd -r kuryr -g 711 \
|
|
&& useradd -u 711 -g kuryr \
|
|
-d /opt/kuryr-kubernetes \
|
|
-s /sbin/nologin \
|
|
-c "Kuryr controller user" \
|
|
kuryr
|
|
|
|
USER kuryr
|
|
CMD ["--config-dir", "/etc/kuryr"]
|
|
ENTRYPOINT [ "/usr/local/bin/kuryr-k8s-controller" ]
|