Browse Source

Merge "Speed up container builds"

changes/55/743955/2
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
8da1d7e381
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      cni.Dockerfile
  2. +2
    -1
      controller.Dockerfile

+ 2
- 1
cni.Dockerfile View File

@@ -18,7 +18,8 @@ RUN yum upgrade -y \

COPY . /opt/kuryr-kubernetes

RUN pip3 install -c $UPPER_CONSTRAINTS_FILE /opt/kuryr-kubernetes \
RUN pip3 install -U pip \
&& python3 -m pip 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 \


+ 2
- 1
controller.Dockerfile View File

@@ -10,7 +10,8 @@ RUN yum upgrade -y \

COPY . /opt/kuryr-kubernetes

RUN pip3 install -c $UPPER_CONSTRAINTS_FILE --no-cache-dir /opt/kuryr-kubernetes \
RUN pip3 install -U pip \
&& python3 -m pip install -c $UPPER_CONSTRAINTS_FILE --no-cache-dir /opt/kuryr-kubernetes \
&& yum -y history undo last \
&& yum clean all \
&& rm -rf /opt/kuryr-kubernetes \


Loading…
Cancel
Save