28b27c5de2
Ussuri release is the one in which we drop Python 2 support, as its EOL is pretty close now. This commit does so in kuryr-kubernetes by removing Python 2 unit test jobs, switching all tempest jobs to Python 3, removing specific jobs for Python 3 and updating Dockerfiles to centos:8 that includes Python 3 from the box. Also CentOS 7 job is removed from check queue as it seems it doesn't play well with Python 3. A CentOS 8 job will get created soon. Change-Id: Id9983d2fd83cef89e3198b2760816cf4a851008b
35 lines
1.1 KiB
Docker
35 lines
1.1 KiB
Docker
FROM golang:1.11 AS builder
|
|
|
|
WORKDIR /go/src/opendev.com/kuryr-kubernetes
|
|
COPY . .
|
|
RUN go build -o /go/bin/kuryr-cni ./kuryr_cni
|
|
|
|
FROM 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"
|
|
ARG OSLO_LOCK_PATH=/var/kuryr-lock
|
|
|
|
RUN yum install -y epel-release https://rdoproject.org/repos/rdo-release.rpm \
|
|
&& yum install -y --setopt=tsflags=nodocs python3-pip openvswitch sudo \
|
|
&& yum install -y --setopt=tsflags=nodocs gcc python3-devel git
|
|
|
|
COPY . /opt/kuryr-kubernetes
|
|
|
|
RUN pip3 install -c $UPPER_CONSTRAINTS_FILE /opt/kuryr-kubernetes \
|
|
&& cp /opt/kuryr-kubernetes/cni_ds_init /usr/bin/cni_ds_init \
|
|
&& mkdir -p /etc/kuryr-cni \
|
|
&& cp /opt/kuryr-kubernetes/etc/cni/net.d/* /etc/kuryr-cni \
|
|
&& yum -y history undo last \
|
|
&& yum clean all \
|
|
&& rm -rf /opt/kuryr-kubernetes \
|
|
&& mkdir ${OSLO_LOCK_PATH}
|
|
|
|
COPY --from=builder /go/bin/kuryr-cni /kuryr-cni
|
|
|
|
ARG CNI_DAEMON=True
|
|
ENV CNI_DAEMON ${CNI_DAEMON}
|
|
ENV OSLO_LOCK_PATH=${OSLO_LOCK_PATH}
|
|
|
|
ENTRYPOINT [ "cni_ds_init" ]
|