1717
1818# Linux Splunk arguments
1919SPLUNK_LINUX_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
20+ SPLUNK_ARM_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
2021SPLUNK_LINUX_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/linux/${SPLUNK_LINUX_FILENAME}
22+ SPLUNK_ARM_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/linux/${SPLUNK_ARM_FILENAME}
2123UF_LINUX_FILENAME ?= splunkforwarder-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
2224UF_LINUX_BUILD_URL ?= https://download.splunk.com/products/universalforwarder/releases/${SPLUNK_VERSION}/linux/${UF_LINUX_FILENAME}
25+ UF_ARM_FILENAME ?= splunkforwarder-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
26+ UF_ARM_BUILD_URL ?= https://download.splunk.com/products/universalforwarder/releases/${SPLUNK_VERSION}/linux/${UF_ARM_FILENAME}
2327# Windows Splunk arguments
2428SPLUNK_WIN_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-x64-release.msi
2529SPLUNK_WIN_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/windows/${SPLUNK_WIN_FILENAME}
@@ -32,8 +36,8 @@ SCANNER_DATE := `date +%Y-%m-%d`
3236SCANNER_DATE_YEST := ` TZ=GMT+24 +%Y:%m:%d `
3337SCANNER_VERSION := v8
3438SCANNER_LOCALIP := $(shell ifconfig | grep -Eo 'inet (addr:) ?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | awk '{print $1}' | head -n 1)
35- SCANNER_IMAGES_TO_SCAN := splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-redhat-8 uf-debian-9 uf-debian-10 uf-centos-7 uf-redhat-8 splunk-py23-debian-9 splunk-py23-debian-10 splunk-py23-centos-7 splunk-py23-redhat-8 uf-py23-debian-9 uf-py23-debian-10 uf-py23-centos-7 uf-py23-redhat-8
36- CONTAINERS_TO_SAVE := splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-redhat-8 uf-debian-9 uf-debian-10 uf-centos-7 uf-redhat-8 splunk-py23-debian-9 splunk-py23-debian-10 splunk-py23-centos-7 splunk-py23-redhat-8 uf-py23-debian-9 uf-py23-debian-10 uf-py23-centos-7 uf-py23-redhat-8
39+ SCANNER_IMAGES_TO_SCAN := splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-redhat-8 splunk-arm64-amazon-linux-2023 uf-arm64-amazon-linux-2023 uf-debian-9 uf-debian-10 uf-centos-7 uf-redhat-8 splunk-py23-debian-9 splunk-py23-debian-10 splunk-py23-centos-7 splunk-py23-redhat-8 uf-py23-debian-9 uf-py23-debian-10 uf-py23-centos-7 uf-py23-redhat-8
40+ CONTAINERS_TO_SAVE := splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-redhat-8 uf-debian-9 splunk-arm64-amazon-linux-2023 uf-arm64-amazon-linux-2023 uf-debian-10 uf-centos-7 uf-redhat-8 splunk-py23-debian-9 splunk-py23-debian-10 splunk-py23-centos-7 splunk-py23-redhat-8 uf-py23-debian-9 uf-py23-debian-10 uf-py23-centos-7 uf-py23-redhat-8
3741ifeq ($(shell uname) , Linux)
3842 SCANNER_FILE = clair-scanner_linux_amd64
3943else ifeq ($(shell uname), Darwin)
@@ -57,7 +61,7 @@ ansible:
5761 @cat splunk-ansible/version.txt
5862
5963# #### Base images #####
60- base : base-debian-9 base-debian-10 base-centos-7 base-centos-8 base-redhat-8 base-windows-2016
64+ base : base-debian-9 base-debian-10 base-centos-7 base-centos-8 base-redhat-8 base-windows-2016 base-arm64-amazon-linux-2023
6165
6266base-debian-10 :
6367 docker build ${DOCKER_BUILD_FLAGS} -t base-debian-10:${IMAGE_VERSION} ./base/debian-10
@@ -80,6 +84,9 @@ base-redhat-8-armv8:
8084base-windows-2016 :
8185 docker build ${DOCKER_BUILD_FLAGS} -t base-windows-2016:${IMAGE_VERSION} ./base/windows-2016
8286
87+ base-arm64-amazon-linux-2023 :
88+ docker build ${DOCKER_BUILD_FLAGS} --platform=linux/arm64/v8 --label version=${SPLUNK_VERSION} -t base-arm64-amazon-linux-2023:${IMAGE_VERSION} ./base/amazon-linux-2023
89+
8390# #### Minimal images #####
8491minimal : minimal-debian-9 minimal-debian-10 minimal-centos-7 minimal-centos-8 minimal-redhat-8
8592
@@ -157,7 +164,7 @@ bare-redhat-8: base-redhat-8
157164 --target bare -t bare-redhat-8:${IMAGE_VERSION} .
158165
159166# #### Splunk images #####
160- splunk : ansible splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-centos-8 splunk-redhat-8
167+ splunk : ansible splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-centos-8 splunk-redhat-8 splunk-arm64-amazon-linux-2023
161168
162169splunk-debian-9 : base-debian-9 ansible
163170 docker build ${DOCKER_BUILD_FLAGS} \
@@ -201,6 +208,14 @@ splunk-windows-2016: base-windows-2016 ansible
201208 --build-arg SPLUNK_BUILD_URL=${SPLUNK_WIN_BUILD_URL} \
202209 -t splunk-windows-2016:${IMAGE_VERSION} .
203210
211+ splunk-arm64-amazon-linux-2023 : base-arm64-amazon-linux-2023 ansible
212+ docker build ${DOCKER_BUILD_FLAGS} \
213+ --platform =linux/arm64/v8 \
214+ -f splunk/common-files/Dockerfile \
215+ --build-arg SPLUNK_BASE_IMAGE=base-arm64-amazon-linux-2023 \
216+ --build-arg SPLUNK_BUILD_URL=${SPLUNK_ARM_BUILD_URL} \
217+ -t splunk-arm64-amazon-linux-2023:${IMAGE_VERSION} .
218+
204219# #### UF images #####
205220uf : ansible uf-debian-9 uf-debian-10 uf-centos-7 uf-centos-8 uf-redhat-8
206221
@@ -268,6 +283,13 @@ uf-windows-2016: base-windows-2016 ansible
268283 --build-arg SPLUNK_BUILD_URL=${UF_WIN_BUILD_URL} \
269284 -t uf-windows-2016:${IMAGE_VERSION} .
270285
286+ uf-arm64-amazon-linux-2023 : base-arm64-amazon-linux-2023 ansible
287+ docker build ${DOCKER_BUILD_FLAGS} \
288+ --platform =linux/arm64/v8 \
289+ -f uf/common-files/Dockerfile \
290+ --build-arg SPLUNK_BASE_IMAGE=base-arm64-amazon-linux-2023 \
291+ --build-arg SPLUNK_BUILD_URL=${UF_ARM_BUILD_URL} \
292+ -t uf-arm64-amazon-linux-2023:${IMAGE_VERSION} .
271293
272294# #### Python 3 support #####
273295splunk-py23 : splunk-py23-debian-9 splunk-py23-debian-10 splunk-py23-centos-7 splunk-py23-centos-8 splunk-py23-redhat-8
@@ -350,7 +372,7 @@ run_large_tests: run_large_tests_centos7 run_large_tests_redhat8 run_large_tests
350372
351373test_centos7 : clean ansible splunk-centos-7 uf-centos-7 test_setup run_small_tests_centos7 run_large_tests_centos7
352374
353- test_redhat8 : clean ansible splunk-redhat-8 uf-redhat-8 test_setup run_small_tests_redhat8 run_large_tests_redhat8
375+ test_redhat8 : clean ansible splunk-redhat-8 splunk-arm64-amazon-linux-2023 uf-arm64-amazon-linux-2023 uf-redhat-8 test_setup run_small_tests_redhat8 run_large_tests_redhat8
354376
355377test_debian9 : clean ansible splunk-debian-9 uf-debian-9 test_setup run_small_tests_debian9 run_large_tests_debian9
356378
0 commit comments