fix(rl10): install tools via pip
This commit is contained in:
1 file changed
+2
-6
@@ -8,12 +8,8 @@ RUN dnf update --assumeyes && \
|
|||||||
dnf remove --assumeyes epel-release && \
|
dnf remove --assumeyes epel-release && \
|
||||||
dnf clean all
|
dnf clean all
|
||||||
|
|
||||||
# We must change python to 3.12 (default 3.9), to be compliant with ansible-core. Furthermore, we must upgrade pip to
|
# Install tools via pip
|
||||||
# latest version. Otherwise is still used pip for python 3.9. At least, we install boto3, which is required for the aws
|
RUN curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
|
||||||
# dynamic inventory manually, because the official python-boto3 package is for python 3.9. At least, we install
|
|
||||||
# ansible-lint via pip to be able to lint ansible roles.
|
|
||||||
RUN ln --symbolic --force /usr/bin/python3.12 /usr/bin/python3 && \
|
|
||||||
curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
|
|
||||||
python3 get-pip.py && \
|
python3 get-pip.py && \
|
||||||
pip install ansible-lint boto3 passlib
|
pip install ansible-lint boto3 passlib
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user