|
1 | 1 | FROM fedora:30 AS base |
2 | 2 |
|
3 | 3 | # CircleCI required tools |
4 | | -RUN dnf install -y \ |
5 | | - git \ |
6 | | - openssh \ |
7 | | - tar \ |
8 | | - gzip \ |
9 | | - gpg \ |
10 | | - ca-certificates \ |
11 | | - && dnf clean all && rm -rf /var/cache/dnf/* |
| 4 | +RUN <<EOF |
| 5 | + dnf install -y \ |
| 6 | + git \ |
| 7 | + openssh \ |
| 8 | + tar \ |
| 9 | + gzip \ |
| 10 | + gpg \ |
| 11 | + ca-certificates |
| 12 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 13 | +EOF |
12 | 14 |
|
13 | 15 | # Other packages required for tests |
14 | | -RUN dnf install -y \ |
15 | | - bzip2 \ |
16 | | - && dnf clean all && rm -rf /var/cache/dnf/* |
| 16 | +RUN <<EOF |
| 17 | + dnf install -y bzip2 |
| 18 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 19 | +EOF |
17 | 20 |
|
18 | | -RUN pip3 install tox==3.11.1 virtualenv==16.6.0 |
| 21 | +RUN pip3 install --no-cache-dir tox==3.11.1 virtualenv==16.6.0 |
19 | 22 |
|
20 | 23 | WORKDIR /tmp/work |
21 | 24 | ENTRYPOINT ["/bin/bash"] |
22 | 25 |
|
23 | 26 | ## |
24 | 27 | FROM base AS python2.7 |
25 | 28 |
|
26 | | -RUN dnf install -y \ |
27 | | - python27 \ |
28 | | - python2-test \ |
29 | | - python2-pip \ |
30 | | - findutils \ |
31 | | - && dnf clean all && rm -rf /var/cache/dnf/* |
| 29 | +RUN <<EOF |
| 30 | + dnf install -y \ |
| 31 | + python27 \ |
| 32 | + python2-test \ |
| 33 | + python2-pip \ |
| 34 | + findutils |
| 35 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 36 | +EOF |
32 | 37 |
|
33 | 38 | ## |
34 | 39 | FROM base AS python3.4 |
35 | 40 |
|
36 | | -RUN dnf install -y \ |
37 | | - python34 \ |
38 | | - && dnf clean all && rm -rf /var/cache/dnf/* \ |
39 | | - && curl https://bootstrap.pypa.io/pip/3.4/get-pip.py | python3.4 |
| 41 | +RUN <<EOF |
| 42 | + dnf install -y python34 |
| 43 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 44 | + curl https://bootstrap.pypa.io/pip/3.4/get-pip.py | python3.4 |
| 45 | +EOF |
40 | 46 |
|
41 | 47 | ## |
42 | 48 | FROM base AS python3.5 |
43 | 49 |
|
44 | | -RUN dnf install -y \ |
45 | | - python35 \ |
46 | | - && dnf clean all && rm -rf /var/cache/dnf/* \ |
47 | | - && curl https://bootstrap.pypa.io/pip/3.5/get-pip.py | python3.5 |
| 50 | +RUN <<EOF |
| 51 | + dnf install -y python35 |
| 52 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 53 | + curl https://bootstrap.pypa.io/pip/3.5/get-pip.py | python3.5 |
| 54 | +EOF |
48 | 55 |
|
49 | 56 | ## |
50 | 57 | FROM base AS python3.6 |
51 | 58 |
|
52 | | -RUN dnf install -y \ |
53 | | - python36 \ |
54 | | - && dnf clean all && rm -rf /var/cache/dnf/* \ |
55 | | - && curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3.6 |
| 59 | +RUN <<EOF |
| 60 | + dnf install -y python36 |
| 61 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 62 | + curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3.6 |
| 63 | +EOF |
56 | 64 |
|
57 | 65 | ## |
58 | 66 | FROM base AS python3.7 |
59 | 67 |
|
60 | | -RUN dnf install -y \ |
61 | | - python37 \ |
62 | | - python3-test \ |
63 | | - python3-pip \ |
64 | | - && dnf clean all && rm -rf /var/cache/dnf/* |
| 68 | +RUN <<EOF |
| 69 | + dnf install -y \ |
| 70 | + python37 \ |
| 71 | + python3-test \ |
| 72 | + python3-pip |
| 73 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 74 | +EOF |
65 | 75 |
|
66 | 76 | ## |
67 | 77 | FROM base AS python3.8 |
68 | 78 |
|
69 | | -RUN dnf install -y \ |
70 | | - python38 \ |
71 | | - && dnf clean all && rm -rf /var/cache/dnf/* \ |
72 | | - && curl https://bootstrap.pypa.io/get-pip.py | python3.8 |
| 79 | +RUN <<EOF |
| 80 | + dnf install -y python38 |
| 81 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 82 | + curl https://bootstrap.pypa.io/get-pip.py | python3.8 |
| 83 | +EOF |
73 | 84 |
|
74 | 85 | ## |
75 | 86 | FROM base AS pypy |
76 | 87 |
|
77 | | -RUN dnf install -y \ |
78 | | - pypy \ |
79 | | - && dnf clean all && rm -rf /var/cache/dnf/* |
| 88 | +RUN <<EOF |
| 89 | + dnf install -y pypy |
| 90 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 91 | +EOF |
80 | 92 |
|
81 | 93 | ## |
82 | 94 | FROM base AS pypy3 |
83 | 95 |
|
84 | | -RUN dnf install -y \ |
85 | | - pypy3 \ |
86 | | - && dnf clean all && rm -rf /var/cache/dnf/* |
| 96 | +RUN <<EOF |
| 97 | + dnf install -y pypy3 |
| 98 | + dnf clean all && rm -rf /var/cache/dnf/* |
| 99 | +EOF |
0 commit comments