Skip to content

Commit f8e54fa

Browse files
Build without scloud (#594)
* Updated UBI to latest tag; Unpinned python plugins to latest; Updated Python to 3.7.16; Removed SCloud support; * remove SCLOUD reference from ARMV8; * fixed syntax error; --------- Co-authored-by: Sujay <schathu@splunk.com>
1 parent ed42fe5 commit f8e54fa

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ SPLUNK_WIN_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-x64-release.msi
2525
SPLUNK_WIN_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/windows/${SPLUNK_WIN_FILENAME}
2626
UF_WIN_FILENAME ?= splunkforwarder-${SPLUNK_VERSION}-${SPLUNK_BUILD}-x64-release.msi
2727
UF_WIN_BUILD_URL ?= https://download.splunk.com/products/universalforwarder/releases/${SPLUNK_VERSION}/windows/${UF_WIN_FILENAME}
28-
# Splunk Cloud SDK binary
29-
SCLOUD_URL ?= https://github.com/splunk/splunk-cloud-sdk-go/releases/download/v1.11.1/scloud_v7.1.0_linux_amd64.tar.gz
28+
3029

3130
# Security Scanner Variables
3231
SCANNER_DATE := `date +%Y-%m-%d`
@@ -61,22 +60,22 @@ ansible:
6160
base: base-debian-9 base-debian-10 base-centos-7 base-centos-8 base-redhat-8 base-windows-2016
6261

6362
base-debian-10:
64-
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-debian-10:${IMAGE_VERSION} ./base/debian-10
63+
docker build ${DOCKER_BUILD_FLAGS} -t base-debian-10:${IMAGE_VERSION} ./base/debian-10
6564

6665
base-debian-9:
67-
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-debian-9:${IMAGE_VERSION} ./base/debian-9
66+
docker build ${DOCKER_BUILD_FLAGS} -t base-debian-9:${IMAGE_VERSION} ./base/debian-9
6867

6968
base-centos-7:
70-
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-centos-7:${IMAGE_VERSION} ./base/centos-7
69+
docker build ${DOCKER_BUILD_FLAGS} -t base-centos-7:${IMAGE_VERSION} ./base/centos-7
7170

7271
base-centos-8:
73-
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-centos-8:${IMAGE_VERSION} ./base/centos-8
72+
docker build ${DOCKER_BUILD_FLAGS} -t base-centos-8:${IMAGE_VERSION} ./base/centos-8
7473

7574
base-redhat-8:
76-
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} --label version=${SPLUNK_VERSION} -t base-redhat-8:${IMAGE_VERSION} ./base/redhat-8
75+
docker build ${DOCKER_BUILD_FLAGS} --label version=${SPLUNK_VERSION} -t base-redhat-8:${IMAGE_VERSION} ./base/redhat-8
7776

7877
base-redhat-8-armv8:
79-
docker buildx build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} --build-arg BUSYBOX_URL=${BUSYBOX_URL} --label version=${SPLUNK_VERSION} -t base-redhat-8-armv8:${IMAGE_VERSION} ./base/redhat-8
78+
docker buildx build ${DOCKER_BUILD_FLAGS} --build-arg BUSYBOX_URL=${BUSYBOX_URL} --label version=${SPLUNK_VERSION} -t base-redhat-8-armv8:${IMAGE_VERSION} ./base/redhat-8
8079

8180
base-windows-2016:
8281
docker build ${DOCKER_BUILD_FLAGS} -t base-windows-2016:${IMAGE_VERSION} ./base/windows-2016

base/redhat-8/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# the container catalog moved from registry.access.redhat.com to registry.redhat.io
1717
# So at some point before they deprecate the old registry we have to make sure that
1818
# we have access to the new registry and change where we pull the ubi image from.
19-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7-1049.1675784874
19+
FROM registry.access.redhat.com/ubi8/ubi-minimal
2020

2121
LABEL name="splunk" \
2222
maintainer="support@splunk.com" \
@@ -25,11 +25,10 @@ LABEL name="splunk" \
2525
summary="UBI 8 Docker image of Splunk Enterprise" \
2626
description="Splunk Enterprise is a platform for operational intelligence. Our software lets you collect, analyze, and act upon the untapped value of big data that your technology infrastructure, security systems, and business applications generate. It gives you insights to drive operational performance and business results."
2727

28-
ARG SCLOUD_URL
2928
ARG BUSYBOX_URL
30-
ENV SCLOUD_URL=${SCLOUD_URL} \
31-
BUSYBOX_URL=${BUSYBOX_URL} \
32-
PYTHON_VERSION=3.7.10 \
29+
30+
ENV BUSYBOX_URL=${BUSYBOX_URL} \
31+
PYTHON_VERSION=3.7.16 \
3332
PYTHON_GPG_KEY_ID=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
3433

3534
COPY install.sh /install.sh

base/redhat-8/install.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
6161

6262
# Install splunk-ansible dependencies
6363
cd /
64-
pip -q --no-cache-dir install six wheel requests cryptography==3.3.2 ansible==3.4.0 urllib3==1.26.5 jmespath --upgrade
64+
/usr/bin/python3.7 -m pip install --upgrade pip
65+
pip -q --no-cache-dir install --upgrade six wheel requests Mako urllib3 certifi jmespath future avro cryptography lxml protobuf setuptools ansible
6566

6667
# Remove tests packaged in python libs
6768
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 '{}' \;
@@ -76,13 +77,8 @@ microdnf remove -y make gcc openssl-devel bzip2-devel findutils glib2-devel glib
7677
ncurses-devel pcre2-devel zlib-devel
7778
microdnf clean all
7879

79-
# Install scloud
80-
wget -O /usr/bin/scloud.tar.gz ${SCLOUD_URL}
81-
tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/
82-
rm /usr/bin/scloud.tar.gz
83-
8480
# Install busybox direct from the multiarch since EPEL isn't available yet for redhat8
85-
BUSYBOX_URL=${BUSYBOX_URL:=https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch`}
81+
BUSYBOX_URL=${BUSYBOX_URL:=https://busybox.net/downloads/binaries/1.35.0-`arch`-linux-musl/}
8682
wget -O /bin/busybox ${BUSYBOX_URL}
8783
chmod +x /bin/busybox
8884

0 commit comments

Comments
 (0)