kuryr-kubernetes/controller.Dockerfile
Antoni Segura Puimedon 50f588fa3f dockerfile: Fix controller upper constraints
It was pointing to a web rendering of the upper constraints
instead of the plain text ones that pip needs.

Closes-Bug: #1763752
Change-Id: I0d43da4df470074397029df84701850d15a12d43
2018-04-20 14:25:09 +00:00

26 lines
934 B
Docker

FROM centos:7
LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Vikas Choudhary<vichoudh@redhat.com>"
ARG UPPER_CONSTRAINTS_FILE="https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens"
COPY . /opt/kuryr-kubernetes
RUN yum install -y epel-release \
&& yum install -y --setopt=tsflags=nodocs python-pip \
&& yum install --setopt=tsflags=nodocs --assumeyes inet-tools gcc python-devel wget git \
&& cd /opt/kuryr-kubernetes \
&& pip install -c $UPPER_CONSTRAINTS_FILE --no-cache-dir . \
&& rm -fr .git \
&& yum -y history undo last \
&& groupadd -r kuryr -g 711 \
&& useradd -u 711 -g kuryr \
-d /opt/kuryr-kubernetes \
-s /sbin/nologin \
-c "Kuryr controller user" \
kuryr \
&& chown kuryr:kuryr /opt/kuryr-kubernetes
USER kuryr
CMD ["--config-dir", "/etc/kuryr"]
ENTRYPOINT [ "/usr/bin/kuryr-k8s-controller" ]