d528e81b6d
Seems like quay.io/app-sre is no longer available to public and builds fail. This commit fixes that by using registry.centos.org to get centos:8 container image and our own quay.io/kuryr to host the golang:1.15 image. Change-Id: I044092e83b1a525ffd7692971a2e3313dfa1e421
28 lines
946 B
Docker
28 lines
946 B
Docker
FROM registry.centos.org/centos:8
|
|
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 yum upgrade -y \
|
|
&& yum install -y epel-release \
|
|
&& yum install -y --setopt=tsflags=nodocs python3-pip libstdc++ \
|
|
&& yum 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 \
|
|
&& yum -y history undo last \
|
|
&& yum 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" ]
|