Browse Source

Update of dockerfiles.

In order to properly build cni/controller images, there was a need to
pin setuptools, and alter URI for the upper constraints.

Change-Id: I41eed8d5e3364b98c2a9617dd067d1bea7c0f207
changes/94/763394/3
Roman Dobosz 11 months ago
parent
commit
052f8852b4
  1. 4
      cni.Dockerfile
  2. 4
      controller.Dockerfile

4
cni.Dockerfile

@ -1,14 +1,14 @@
FROM centos:7
LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Michał Dulko<mdulko@redhat.com>"
ARG UPPER_CONSTRAINTS_FILE="https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt"
ARG UPPER_CONSTRAINTS_FILE="https://opendev.org/openstack/requirements/raw/branch/stable/rocky/upper-constraints.txt"
ARG OSLO_LOCK_PATH=/var/kuryr-lock
ARG PKG_YUM_REPO=https://rdoproject.org/repos/openstack-rocky/rdo-release-rocky-0.noarch.rpm
RUN yum install -y epel-release $PKG_YUM_REPO \
&& yum install -y --setopt=tsflags=nodocs python-pip iproute bridge-utils openvswitch sudo jq \
&& yum install -y --setopt=tsflags=nodocs gcc python-devel git \
&& pip install -U setuptools
&& pip install -U setuptools==40.0.0
COPY . /opt/kuryr-kubernetes

4
controller.Dockerfile

@ -1,12 +1,12 @@
FROM centos:7
LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Michał Dulko<mdulko@redhat.com>"
ARG UPPER_CONSTRAINTS_FILE="https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt"
ARG UPPER_CONSTRAINTS_FILE="https://opendev.org/openstack/requirements/raw/branch/stable/rocky/upper-constraints.txt"
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 \
&& pip install -U setuptools
&& pip install -U setuptools==40.0.0
COPY . /opt/kuryr-kubernetes

Loading…
Cancel
Save