632d32be89
Implements blueprint kubeadminstallable Change-Id: I38cbc88ee7ee7b544ec15ee8f6ef9e0a0f474c2a Co-Authored-By: Antoni Segura Puimedon <antonisp@celebdor.com> Co-Authored-By: Michal Dulko <mdulko@redhat.com>
24 lines
779 B
Docker
24 lines
779 B
Docker
FROM centos:7
|
|
LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Vikas Choudhary<vichoudh@redhat.com>"
|
|
|
|
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 --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" ]
|