Skip to content

Commit

Permalink
Merge pull request #595 from splunk/develop
Browse files Browse the repository at this point in the history
Release 9.0.5
  • Loading branch information
adityapinglesf authored Jun 2, 2023
2 parents c98ebab + 0fe0b7e commit 359cd49
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 20 deletions.
28 changes: 19 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ SPLUNK_ANSIBLE_BRANCH ?= develop
SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
# Set Splunk version/build parameters here to define downstream URLs and file names
SPLUNK_PRODUCT := splunk
SPLUNK_VERSION := 9.0.4
SPLUNK_BUILD := de405f4a7979
SPLUNK_VERSION := 9.0.5
SPLUNK_BUILD := e9494146ae5c
ifeq ($(shell arch), s390x)
SPLUNK_ARCH = s390x
else
Expand All @@ -25,8 +25,7 @@ SPLUNK_WIN_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-x64-release.msi
SPLUNK_WIN_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/windows/${SPLUNK_WIN_FILENAME}
UF_WIN_FILENAME ?= splunkforwarder-${SPLUNK_VERSION}-${SPLUNK_BUILD}-x64-release.msi
UF_WIN_BUILD_URL ?= https://download.splunk.com/products/universalforwarder/releases/${SPLUNK_VERSION}/windows/${UF_WIN_FILENAME}
# Splunk Cloud SDK binary
SCLOUD_URL ?= https://github.com/splunk/splunk-cloud-sdk-go/releases/download/v1.11.1/scloud_v7.1.0_linux_amd64.tar.gz


# Security Scanner Variables
SCANNER_DATE := `date +%Y-%m-%d`
Expand Down Expand Up @@ -61,19 +60,22 @@ ansible:
base: base-debian-9 base-debian-10 base-centos-7 base-centos-8 base-redhat-8 base-windows-2016

base-debian-10:
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-debian-10:${IMAGE_VERSION} ./base/debian-10
docker build ${DOCKER_BUILD_FLAGS} -t base-debian-10:${IMAGE_VERSION} ./base/debian-10

base-debian-9:
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-debian-9:${IMAGE_VERSION} ./base/debian-9
docker build ${DOCKER_BUILD_FLAGS} -t base-debian-9:${IMAGE_VERSION} ./base/debian-9

base-centos-7:
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-centos-7:${IMAGE_VERSION} ./base/centos-7
docker build ${DOCKER_BUILD_FLAGS} -t base-centos-7:${IMAGE_VERSION} ./base/centos-7

base-centos-8:
docker build ${DOCKER_BUILD_FLAGS} --build-arg SCLOUD_URL=${SCLOUD_URL} -t base-centos-8:${IMAGE_VERSION} ./base/centos-8
docker build ${DOCKER_BUILD_FLAGS} -t base-centos-8:${IMAGE_VERSION} ./base/centos-8

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

base-redhat-8-armv8:
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

base-windows-2016:
docker build ${DOCKER_BUILD_FLAGS} -t base-windows-2016:${IMAGE_VERSION} ./base/windows-2016
Expand Down Expand Up @@ -251,6 +253,14 @@ uf-redhat-8: base-redhat-8 ansible
--build-arg SPLUNK_BUILD_URL=${UF_LINUX_BUILD_URL} \
-t uf-redhat-8:${IMAGE_VERSION} .

uf-redhat-8-armv8: base-redhat-8-armv8 ansible
docker buildx build ${DOCKER_BUILD_FLAGS} \
-f uf/common-files/Dockerfile \
--build-arg SPLUNK_BASE_IMAGE=base-redhat-8-armv8 \
--build-arg SPLUNK_BUILD_URL=${UF_LINUX_BUILD_URL} \
-t uf-redhat-8-armv8:${IMAGE_VERSION} .


uf-windows-2016: base-windows-2016 ansible
docker build ${DOCKER_BUILD_FLAGS} \
-f uf/windows-2016/Dockerfile \
Expand Down
9 changes: 5 additions & 4 deletions base/redhat-8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# the container catalog moved from registry.access.redhat.com to registry.redhat.io
# So at some point before they deprecate the old registry we have to make sure that
# we have access to the new registry and change where we pull the ubi image from.
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7-1049.1675784874
FROM registry.access.redhat.com/ubi8/ubi-minimal

LABEL name="splunk" \
maintainer="[email protected]" \
Expand All @@ -25,9 +25,10 @@ LABEL name="splunk" \
summary="UBI 8 Docker image of Splunk Enterprise" \
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."

ARG SCLOUD_URL
ENV SCLOUD_URL=${SCLOUD_URL} \
PYTHON_VERSION=3.7.10 \
ARG BUSYBOX_URL

ENV BUSYBOX_URL=${BUSYBOX_URL} \
PYTHON_VERSION=3.7.16 \
PYTHON_GPG_KEY_ID=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D

COPY install.sh /install.sh
Expand Down
11 changes: 4 additions & 7 deletions base/redhat-8/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip

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

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

# Install scloud
wget -O /usr/bin/scloud.tar.gz ${SCLOUD_URL}
tar -xf /usr/bin/scloud.tar.gz -C /usr/bin/
rm /usr/bin/scloud.tar.gz

# Install busybox direct from the multiarch since EPEL isn't available yet for redhat8
wget -O /bin/busybox https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch`
BUSYBOX_URL=${BUSYBOX_URL:=https://busybox.net/downloads/binaries/1.35.0-`arch`-linux-musl/}
wget -O /bin/busybox ${BUSYBOX_URL}
chmod +x /bin/busybox

# Enable busybox symlinks
Expand Down
16 changes: 16 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Red Hat images will continue to be published.

## Navigation

* [9.0.5](#905)
* [9.0.4.1](#9041)
* [9.0.4](#904)
* [9.0.2](#902)
Expand Down Expand Up @@ -82,6 +83,21 @@ Red Hat images will continue to be published.
* [7.2.1](#721)
* [7.2.0](#720)

## 9.0.5

#### What's New?
* Releasing new images to support Splunk Enterprise release.

#### docker-splunk changes:
* Bumping Splunk version. For details, see [Fixed issues for 9.0.5](https://docs.splunk.com/Documentation/Splunk/9.0.5/ReleaseNotes/Fixedissues#Splunk_Enterprise_9.0.5)
* DISCONTINUE SCLOUD support. SCLOUD can be fetched and installed using provisions. [SCLOUD can be found here.](https://github.com/splunk/splunk-cloud-sdk-go)

#### splunk-ansible changes:
* Bugfixes
* Increase timeout for Splunk process to be up and running

---

## 9.0.4.1

#### What's New?
Expand Down

0 comments on commit 359cd49

Please sign in to comment.