File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
ARG TAG
2
2
FROM oraclelinux:${TAG}
3
+ # We need to declare TAG again to use it past FROM
4
+ ARG TAG
3
5
ARG PYTHON_VERSION
4
6
5
7
ENV WHEELHOUSE_PATH /tmp/wheelhouse
6
8
ENV VIRTUALENV_PATH /tmp/venv
7
9
# This will get updated by the CircleCI checkout step.
8
10
ENV BUILD_SRC_ROOT /tmp/project
9
11
12
+ # Starting from v9, we need the EPEL repo for python3-virtualenv
13
+ RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-${TAG}.noarch.rpm
14
+
15
+ # Use bash substitution to extract the major version of Python
16
+ SHELL ["/bin/bash", "-c"]
10
17
# XXX net-tools is actually a Tahoe-LAFS runtime dependency!
11
- RUN yum install --assumeyes \
18
+ RUN dnf install --assumeyes \
12
19
git \
13
20
sudo \
14
21
make automake gcc gcc-c++ \
15
22
python${PYTHON_VERSION} \
16
23
libffi-devel \
17
24
openssl-devel \
18
25
libyaml \
19
- /usr/bin/ virtualenv \
26
+ python${PYTHON_VERSION%%.*}- virtualenv \
20
27
net-tools
21
28
22
29
# Get the project source. This is better than it seems. CircleCI will
You can’t perform that action at this time.
0 commit comments