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 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. FROM golang:1.11 AS builder
  2. WORKDIR /go/src/opendev.com/kuryr-kubernetes
  3. COPY . .
  4. RUN go build -o /go/bin/kuryr-cni ./kuryr_cni
  5. FROM fedora:30
  6. LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Michał Dulko<mdulko@redhat.com>"
  7. ARG UPPER_CONSTRAINTS_FILE="https://releases.openstack.org/constraints/upper/master"
  8. ARG OSLO_LOCK_PATH=/var/kuryr-lock
  9. RUN dnf update -y \
  10. && dnf install -y --setopt=tsflags=nodocs python36 iproute bridge-utils openvswitch sudo libstdc++ \
  11. && dnf install -y --setopt=tsflags=nodocs gcc git
  12. COPY . /opt/kuryr-kubernetes
  13. RUN python3.6 -m ensurepip \
  14. && python3.6 -m pip install -c $UPPER_CONSTRAINTS_FILE /opt/kuryr-kubernetes \
  15. && cp /opt/kuryr-kubernetes/cni_ds_init /usr/bin/cni_ds_init \
  16. && mkdir -p /etc/kuryr-cni \
  17. && cp /opt/kuryr-kubernetes/etc/cni/net.d/* /etc/kuryr-cni \
  18. && dnf -y history undo last \
  19. && dnf clean all \
  20. && rm -rf /opt/kuryr-kubernetes \
  21. && mkdir ${OSLO_LOCK_PATH}
  22. COPY --from=builder /go/bin/kuryr-cni /kuryr-cni
  23. ARG CNI_DAEMON=True
  24. ENV CNI_DAEMON ${CNI_DAEMON}
  25. ENV OSLO_LOCK_PATH=${OSLO_LOCK_PATH}
  26. ENTRYPOINT [ "cni_ds_init" ]