diff --git a/base/debian-10/Dockerfile b/base/debian-10/Dockerfile index 9af6aad2..193917e0 100644 --- a/base/debian-10/Dockerfile +++ b/base/debian-10/Dockerfile @@ -18,7 +18,8 @@ LABEL maintainer="support@splunk.com" ARG SCLOUD_URL ENV SCLOUD_URL=${SCLOUD_URL} \ DEBIAN_FRONTEND=noninteractive \ - PYTHON_VERSION=3.7.9 + PYTHON_VERSION=3.7.10 \ + PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856 COPY install.sh /install.sh RUN /install.sh && rm -rf /install.sh diff --git a/base/debian-10/install.sh b/base/debian-10/install.sh index ad1bce7a..7ef7fef0 100755 --- a/base/debian-10/install.sh +++ b/base/debian-10/install.sh @@ -38,6 +38,7 @@ apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox pr # Install Python and necessary packages PY_SHORT=${PYTHON_VERSION%.*} wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz +echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check mkdir -p /tmp/pyinstall tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz rm /tmp/python.tgz diff --git a/base/debian-9/Dockerfile b/base/debian-9/Dockerfile index 209a6e1f..9aa60073 100644 --- a/base/debian-9/Dockerfile +++ b/base/debian-9/Dockerfile @@ -18,7 +18,8 @@ LABEL maintainer="support@splunk.com" ARG SCLOUD_URL ENV SCLOUD_URL=${SCLOUD_URL} \ DEBIAN_FRONTEND=noninteractive \ - PYTHON_VERSION=3.7.9 + PYTHON_VERSION=3.7.10 \ + PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856 COPY install.sh /install.sh RUN /install.sh && rm -rf /install.sh diff --git a/base/debian-9/install.sh b/base/debian-9/install.sh index 1bdf3c09..19deedf4 100755 --- a/base/debian-9/install.sh +++ b/base/debian-9/install.sh @@ -37,6 +37,7 @@ apt-get install -y --no-install-recommends curl sudo libgssapi-krb5-2 busybox pr # Install Python and necessary packages PY_SHORT=${PYTHON_VERSION%.*} wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz +echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check mkdir -p /tmp/pyinstall tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz rm /tmp/python.tgz diff --git a/base/redhat-8/Dockerfile b/base/redhat-8/Dockerfile index e04aa77f..219cd0a7 100644 --- a/base/redhat-8/Dockerfile +++ b/base/redhat-8/Dockerfile @@ -27,7 +27,8 @@ LABEL name="splunk" \ ARG SCLOUD_URL ENV SCLOUD_URL=${SCLOUD_URL} \ - PYTHON_VERSION=3.7.9 + PYTHON_VERSION=3.7.10 \ + PYTHON_MD5=0b19e34a6dabc4bf15fdcdf9e77e9856 COPY install.sh /install.sh diff --git a/base/redhat-8/install.sh b/base/redhat-8/install.sh index 13278e71..c923861a 100755 --- a/base/redhat-8/install.sh +++ b/base/redhat-8/install.sh @@ -34,6 +34,7 @@ microdnf -y --nodocs update gnutls kernel-headers librepo libnghttp2 tzdata # Install Python and necessary packages PY_SHORT=${PYTHON_VERSION%.*} wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz +echo "$PYTHON_MD5 /tmp/python.tgz" | md5sum --check mkdir -p /tmp/pyinstall tar -xzC /tmp/pyinstall/ --strip-components=1 -f /tmp/python.tgz rm /tmp/python.tgz