
Due to the EOL for Centos 8, we need to go forward, and adopt to the Stream version of Centos for container images of kuryr CNI and controller. There was applied modification for fixing (hopefully transient) issues with variable usage in yum/dnf, so there is a need for replacing those manually. And finally, there was a switch from deprecated yum to dnf. Change-Id: I19c16877e8ba6f401c9d76ed70b2380c4e3cfbe0
28 lines
947 B
Docker
28 lines
947 B
Docker
FROM quay.io/centos/centos:stream8
|
|
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 upgrade -y \
|
|
&& dnf install -y epel-release \
|
|
&& dnf install -y --setopt=tsflags=nodocs python3-pip libstdc++ \
|
|
&& dnf install -y --setopt=tsflags=nodocs gcc gcc-c++ python3-devel git
|
|
|
|
COPY . /opt/kuryr-kubernetes
|
|
|
|
RUN pip3 --no-cache-dir install -U pip \
|
|
&& python3 -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 [ "kuryr-k8s-controller" ]
|