File tree Expand file tree Collapse file tree 12 files changed +50
-2
lines changed Expand file tree Collapse file tree 12 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def main():
7070 # Make sure everything is relative
7171 dockerfile = os .path .relpath (os .path .realpath (dockerfile ), root_dir )
7272
73- docker_dir , docker_name = os . path . split ( dockerfile )
73+ docker_dir = "."
7474
7575 print ("Testing {}" .format (dockerfile ))
7676 sys .stdout .flush ()
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ RUN apt-get -y update && apt-get -y --no-install-recommends install \
2323 python \
2424 python-six \
2525 python2-dev \
26+ python3-pip \
2627 python3-six \
2728 python3-distutils \
2829 rsync \
@@ -33,6 +34,9 @@ RUN apt-get -y update && apt-get -y --no-install-recommends install \
3334 uuid-dev \
3435 ca-certificates
3536
37+ COPY swift-ci/dependencies/requirements.txt /dependencies/
38+ RUN pip3 install -r /dependencies/requirements.txt
39+
3640USER build-user
3741
3842WORKDIR /home/build-user
Original file line number Diff line number Diff line change @@ -25,13 +25,17 @@ RUN apt-get -y update && apt-get -y install \
2525 python2-dev \
2626 python3-six \
2727 python3-distutils \
28+ python3-pip \
2829 rsync \
2930 swig \
3031 systemtap-sdt-dev \
3132 tzdata \
3233 unzip \
3334 uuid-dev
3435
36+ COPY swift-ci/dependencies/requirements.txt /dependencies/
37+ RUN pip3 install -r /dependencies/requirements.txt
38+
3539USER build-user
3640
3741WORKDIR /home/build-user
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ RUN apt-get -y update && apt-get -y install \
2222 ninja-build \
2323 pkg-config \
2424 python3-distutils \
25+ python3-pip \
2526 python3-pkg-resources \
2627 python3-psutil \
2728 rsync \
@@ -46,6 +47,9 @@ ENV SWIFT_PLATFORM=$SWIFT_PLATFORM \
4647 SWIFT_WEBROOT=$SWIFT_WEBROOT \
4748 SWIFT_PREFIX=$SWIFT_PREFIX
4849
50+ COPY swift-ci/dependencies/requirements.txt /dependencies/
51+ RUN pip3 install -r /dependencies/requirements.txt --break-system-packages
52+
4953RUN set -e; \
5054 ARCH_NAME="$(dpkg --print-architecture)" ; \
5155 url=; \
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ RUN groupadd -g 998 build-user && \
55
66ENV DEBIAN_FRONTEND="noninteractive"
77
8+ RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
9+ RUN sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list
10+ RUN sed -i s/stretch-updates/stretch/g /etc/apt/sources.list
811RUN apt-get update
912
1013RUN apt-get --no-install-recommends -y install \
@@ -22,6 +25,9 @@ RUN apt-get --no-install-recommends -y install \
2225 ninja-build \
2326 pkg-config \
2427 python \
28+ python3-setuptools \
29+ python3-dev \
30+ python3-pip \
2531 python-six \
2632 rsync \
2733 swig \
@@ -31,6 +37,9 @@ RUN apt-get --no-install-recommends -y install \
3137 ca-certificates \
3238 uuid-dev
3339
40+ COPY swift-ci/dependencies/requirements.txt /dependencies/
41+ RUN pip3 install -r /dependencies/requirements.txt
42+
3443USER build-user
3544
3645WORKDIR /home/build-user
Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ RUN dnf -y update && dnf install -y \
2020 python-unversioned-command \
2121 python27 \
2222 python3 \
23+ python3-pip \
2324 python3-devel \
2425 python3-distro \
2526 python3-six \
2627 rsync \
2728 swig
2829
30+ COPY swift-ci/dependencies/requirements.txt /dependencies/
31+ RUN pip3 install -r /dependencies/requirements.txt
32+
2933USER build-user
3034
3135WORKDIR /home/build-user
Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ RUN dnf -y update && dnf install -y \
2020 python-unversioned-command \
2121 python27 \
2222 python3 \
23+ python3-pip \
2324 python3-devel \
2425 python3-distro \
2526 python3-six \
2627 rsync \
2728 swig
2829
30+ COPY swift-ci/dependencies/requirements.txt /dependencies/
31+ RUN pip3 install -r /dependencies/requirements.txt
32+
2933USER build-user
3034
3135WORKDIR /home/build-user
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ RUN yum install -y \
1111 libuuid-devel \
1212 libxml2-devel \
1313 python3 \
14+ python3-pip \
1415 python3-devel \
1516 python3-distro \
1617 python3-setuptools \
@@ -40,6 +41,9 @@ ENV SWIFT_PLATFORM=$SWIFT_PLATFORM \
4041 SWIFT_WEBROOT=$SWIFT_WEBROOT \
4142 SWIFT_PREFIX=$SWIFT_PREFIX
4243
44+ COPY swift-ci/dependencies/requirements.txt /dependencies/
45+ RUN pip3 install -r /dependencies/requirements.txt
46+
4347RUN set -e; \
4448 ARCH_NAME="$(rpm --eval '%{_arch}')" ; \
4549 url=; \
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ RUN yum install -y \
1111 libuuid-devel \
1212 libxml2-devel \
1313 python3 \
14+ python3-pip \
1415 python3-devel \
1516 python3-distro \
1617 python3-setuptools \
@@ -26,6 +27,9 @@ RUN yum install -y \
2627 unzip \
2728 diffutils
2829
30+ COPY swift-ci/dependencies/requirements.txt /dependencies/
31+ RUN pip3 install -r /dependencies/requirements.txt
32+
2933USER build-user
3034
3135WORKDIR /home/build-user
Original file line number Diff line number Diff line change @@ -18,14 +18,17 @@ RUN dnf -y update && dnf install -y \
1818 make \
1919 ninja-build \
2020 python-unversioned-command \
21- python27 \
2221 python3 \
22+ python3-pip \
2323 python3-devel \
2424 python3-distro \
2525 python3-six \
2626 rsync \
2727 swig
2828
29+ COPY swift-ci/dependencies/requirements.txt /dependencies/
30+ RUN pip3 install -r /dependencies/requirements.txt
31+
2932USER build-user
3033
3134WORKDIR /home/build-user
You can’t perform that action at this time.
0 commit comments