Kubernetes integration with OpenStack networking
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cni_py3.Dockerfile 922B

12345678910111213141516171819202122232425
  1. FROM fedora:28
  2. LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Michał Dulko<mdulko@redhat.com>"
  3. ARG UPPER_CONSTRAINTS_FILE="https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt"
  4. ARG OSLO_LOCK_PATH=/var/kuryr-lock
  5. RUN dnf update -y \
  6. && dnf install -y --setopt=tsflags=nodocs python3-pip iproute bridge-utils openvswitch sudo \
  7. && dnf install -y --setopt=tsflags=nodocs gcc python3-devel git
  8. COPY . /opt/kuryr-kubernetes
  9. RUN pip3 install -c $UPPER_CONSTRAINTS_FILE /opt/kuryr-kubernetes \
  10. && cp /opt/kuryr-kubernetes/cni_ds_init /usr/bin/cni_ds_init \
  11. && mkdir -p /etc/kuryr-cni \
  12. && cp /opt/kuryr-kubernetes/etc/cni/net.d/* /etc/kuryr-cni \
  13. && dnf -y history undo last \
  14. && rm -rf /opt/kuryr-kubernetes \
  15. && mkdir ${OSLO_LOCK_PATH}
  16. ARG CNI_DAEMON=True
  17. ENV CNI_DAEMON ${CNI_DAEMON}
  18. ENV OSLO_LOCK_PATH=${OSLO_LOCK_PATH}
  19. ENTRYPOINT [ "cni_ds_init" ]