File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ LABEL name="splunk" \
28
28
ARG BUSYBOX_URL
29
29
30
30
ENV BUSYBOX_URL=${BUSYBOX_URL} \
31
- PYTHON_VERSION=3.8 .19 \
31
+ PYTHON_VERSION=3.9 .19 \
32
32
PYTHON_GPG_KEY_ID=E3FF2839C048B25C084DEBE9B26995E310250568
33
33
34
34
COPY install.sh /install.sh
Original file line number Diff line number Diff line change 17
17
18
18
# Generate UTF-8 char map and locale
19
19
# Reinstalling local English def for now, removed in minimal image: https://bugzilla.redhat.com/show_bug.cgi?id=1665251
20
- microdnf -y --nodocs install glibc-langpack-en
20
+ # Comment below install until glibc update is available in minimal image: https://access.redhat.com/errata/RHSA-2024:2722
21
+ # microdnf -y --nodocs install glibc-langpack-en
21
22
22
23
# Currently there is no access to the UTF-8 char map. The following command is commented out until
23
24
# the base container can generate the locale.
@@ -74,9 +75,12 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
74
75
75
76
# Install splunk-ansible dependencies
76
77
cd /
77
- /usr/bin/python3.8 -m pip install --upgrade pip
78
+ /usr/bin/python3.9 -m pip install --upgrade pip
78
79
pip -q --no-cache-dir install --upgrade " requests_unixsocket<2.29" " requests<2.29" six wheel Mako " urllib3<2.0.0" certifi jmespath future avro cryptography lxml protobuf setuptools ansible
79
80
81
+ # Avoid vulnerability on old pip version
82
+ /usr/libexec/platform-python -m pip install --upgrade pip
83
+
80
84
# Remove tests packaged in python libs
81
85
find /usr/lib/ -depth \( -type d -a -not -wholename ' */ansible/plugins/test' -a \( -name test -o -name tests -o -name idle_test \) \) -exec rm -rf ' {}' \;
82
86
find /usr/lib/ -depth \( -type f -a -name ' *.pyc' -o -name ' *.pyo' -o -name ' *.a' \) -exec rm -rf ' {}' \;
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ FROM ${SPLUNK_PRODUCT}-redhat-8:latest
3
3
USER root
4
4
5
5
RUN microdnf -y --nodocs update \
6
- && microdnf -y --nodocs install python2-pip python2-devel \
6
+ && microdnf -y --nodocs install python2 \
7
+ && pip2 install --upgrade pip \
7
8
&& pip2 --no-cache-dir install requests pyyaml jmespath \
8
- && ln -sf /usr/bin/python3.8 /usr/bin/python3 \
9
- && ln -sf /usr/bin/pip3.8 /usr/bin/pip3 \
10
- && ln -sf /usr/bin/python3.8 /usr/bin/python \
11
- && ln -sf /usr/bin/pip3.8 /usr/bin/pip \
9
+ && ln -sf /usr/bin/python3.9 /usr/bin/python3 \
10
+ && ln -sf /usr/bin/pip3.9 /usr/bin/pip3 \
11
+ && ln -sf /usr/bin/python3.9 /usr/bin/python \
12
+ && ln -sf /usr/bin/pip3.9 /usr/bin/pip \
12
13
&& pip3 install --upgrade requests==2.25.1 pyyaml==5.4.1 jmespath==0.10.0 \
13
14
&& sed -i '/^\[ defaults\] /a\i nterpreter_python = /usr/bin/python3' /opt/ansible/ansible.cfg
You can’t perform that action at this time.
0 commit comments