Skip to content

Commit 2d198e4

Browse files
committed
Fix venv module installation on oraclelinux
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
1 parent ef04f6f commit 2d198e4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.circleci/Dockerfile.oraclelinux

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
ARG TAG
22
FROM oraclelinux:${TAG}
3+
# We need to declare TAG again to use it past FROM
4+
ARG TAG
35
ARG PYTHON_VERSION
46

57
ENV WHEELHOUSE_PATH /tmp/wheelhouse
68
ENV VIRTUALENV_PATH /tmp/venv
79
# This will get updated by the CircleCI checkout step.
810
ENV BUILD_SRC_ROOT /tmp/project
911

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"]
1017
# XXX net-tools is actually a Tahoe-LAFS runtime dependency!
11-
RUN yum install --assumeyes \
18+
RUN dnf install --assumeyes \
1219
git \
1320
sudo \
1421
make automake gcc gcc-c++ \
1522
python${PYTHON_VERSION} \
1623
libffi-devel \
1724
openssl-devel \
1825
libyaml \
19-
/usr/bin/virtualenv \
26+
python${PYTHON_VERSION%%.*}-virtualenv \
2027
net-tools
2128

2229
# Get the project source. This is better than it seems. CircleCI will

0 commit comments

Comments
 (0)