@@ -8,18 +8,20 @@ SPLUNK_COMPOSE ?= cluster_absolute_unit.yaml
8
8
# Set Splunk version/build parameters here to define downstream URLs and file names
9
9
SPLUNK_PRODUCT := splunk
10
10
SPLUNK_VERSION := 9.1.3
11
- SPLUNK_BUILD := 6a4ece53c9fe
12
- ifeq ($(shell arch) , s390x)
13
- SPLUNK_ARCH = s390x
14
- else
15
- SPLUNK_ARCH = x86_64
16
- endif
11
+ SPLUNK_BUILD := d95b3299fa65
12
+ # https://download.splunk.com/products/splunk/releases/9.1.3/linux/splunk-9.1.3-d95b3299fa65-Linux-x86_64.tgz
13
+ # Graviton manual build
14
+ SPLUNK_ARCH := x86_64
17
15
18
16
# Linux Splunk arguments
19
17
SPLUNK_LINUX_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
18
+ SPLUNK_ARM_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
20
19
SPLUNK_LINUX_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/linux/${SPLUNK_LINUX_FILENAME}
20
+ SPLUNK_ARM_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/linux/${SPLUNK_ARM_FILENAME}
21
21
UF_LINUX_FILENAME ?= splunkforwarder-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
22
22
UF_LINUX_BUILD_URL ?= https://download.splunk.com/products/universalforwarder/releases/${SPLUNK_VERSION}/linux/${UF_LINUX_FILENAME}
23
+ UF_ARM_FILENAME ?= splunkforwarder-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
24
+ UF_ARM_BUILD_URL ?= https://download.splunk.com/products/universalforwarder/releases/${SPLUNK_VERSION}/linux/${UF_ARM_FILENAME}
23
25
# Windows Splunk arguments
24
26
SPLUNK_WIN_FILENAME ?= splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-x64-release.msi
25
27
SPLUNK_WIN_BUILD_URL ?= https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/windows/${SPLUNK_WIN_FILENAME}
@@ -32,8 +34,8 @@ SCANNER_DATE := `date +%Y-%m-%d`
32
34
SCANNER_DATE_YEST := ` TZ=GMT+24 +%Y:%m:%d `
33
35
SCANNER_VERSION := v8
34
36
SCANNER_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
37
+ SCANNER_IMAGES_TO_SCAN := splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-redhat-8 splunk-amazon-linux-2023 uf-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
38
+ CONTAINERS_TO_SAVE := splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-redhat-8 uf-debian-9 splunk-amazon-linux-2023 uf-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
37
39
ifeq ($(shell uname) , Linux)
38
40
SCANNER_FILE = clair-scanner_linux_amd64
39
41
else ifeq ($(shell uname), Darwin)
@@ -57,7 +59,7 @@ ansible:
57
59
@cat splunk-ansible/version.txt
58
60
59
61
# #### Base images #####
60
- base : base-debian-9 base-debian-10 base-centos-7 base-centos-8 base-redhat-8 base-windows-2016
62
+ base : base-debian-9 base-debian-10 base-centos-7 base-centos-8 base-redhat-8 base-windows-2016 base-amazon-linux-2023
61
63
62
64
base-debian-10 :
63
65
docker build ${DOCKER_BUILD_FLAGS} -t base-debian-10:${IMAGE_VERSION} ./base/debian-10
@@ -80,6 +82,9 @@ base-redhat-8-armv8:
80
82
base-windows-2016 :
81
83
docker build ${DOCKER_BUILD_FLAGS} -t base-windows-2016:${IMAGE_VERSION} ./base/windows-2016
82
84
85
+ base-amazon-linux-2023 :
86
+ docker build ${DOCKER_BUILD_FLAGS} --platform=linux/arm64/v8 --label version=${SPLUNK_VERSION} -t base-amazon-linux-2023:${IMAGE_VERSION} ./base/amazon-linux-2023
87
+
83
88
# #### Minimal images #####
84
89
minimal : minimal-debian-9 minimal-debian-10 minimal-centos-7 minimal-centos-8 minimal-redhat-8
85
90
@@ -157,7 +162,7 @@ bare-redhat-8: base-redhat-8
157
162
--target bare -t bare-redhat-8:${IMAGE_VERSION} .
158
163
159
164
# #### Splunk images #####
160
- splunk : ansible splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-centos-8 splunk-redhat-8
165
+ splunk : ansible splunk-debian-9 splunk-debian-10 splunk-centos-7 splunk-centos-8 splunk-redhat-8 splunk-amazon-linux-2023
161
166
162
167
splunk-debian-9 : base-debian-9 ansible
163
168
docker build ${DOCKER_BUILD_FLAGS} \
@@ -201,6 +206,14 @@ splunk-windows-2016: base-windows-2016 ansible
201
206
--build-arg SPLUNK_BUILD_URL=${SPLUNK_WIN_BUILD_URL} \
202
207
-t splunk-windows-2016:${IMAGE_VERSION} .
203
208
209
+ splunk-amazon-linux-2023 : base-amazon-linux-2023 ansible
210
+ docker build ${DOCKER_BUILD_FLAGS} \
211
+ --platform =linux/arm64/v8 \
212
+ -f splunk/common-files/Dockerfile \
213
+ --build-arg SPLUNK_BASE_IMAGE=base-amazon-linux-2023 \
214
+ --build-arg SPLUNK_BUILD_URL=${SPLUNK_ARM_BUILD_URL} \
215
+ -t splunk-amazon-linux-2023:${IMAGE_VERSION} .
216
+
204
217
# #### UF images #####
205
218
uf : ansible uf-debian-9 uf-debian-10 uf-centos-7 uf-centos-8 uf-redhat-8
206
219
@@ -268,6 +281,14 @@ uf-windows-2016: base-windows-2016 ansible
268
281
--build-arg SPLUNK_BUILD_URL=${UF_WIN_BUILD_URL} \
269
282
-t uf-windows-2016:${IMAGE_VERSION} .
270
283
284
+ uf-amazon-linux-2023 : base-amazon-linux-2023 ansible
285
+ docker build ${DOCKER_BUILD_FLAGS} \
286
+ --platform =linux/arm64/v8 \
287
+ -f uf/common-files/Dockerfile \
288
+ --build-arg SPLUNK_BASE_IMAGE=base-amazon-linux-2023 \
289
+ --build-arg SPLUNK_BUILD_URL=${UF_ARM_BUILD_URL} \
290
+ -t uf-amazon-linux-2023:${IMAGE_VERSION} .
291
+
271
292
272
293
# #### Python 3 support #####
273
294
splunk-py23 : splunk-py23-debian-9 splunk-py23-debian-10 splunk-py23-centos-7 splunk-py23-centos-8 splunk-py23-redhat-8
@@ -350,7 +371,7 @@ run_large_tests: run_large_tests_centos7 run_large_tests_redhat8 run_large_tests
350
371
351
372
test_centos7 : clean ansible splunk-centos-7 uf-centos-7 test_setup run_small_tests_centos7 run_large_tests_centos7
352
373
353
- test_redhat8 : clean ansible splunk-redhat-8 uf-redhat-8 test_setup run_small_tests_redhat8 run_large_tests_redhat8
374
+ test_redhat8 : clean ansible splunk-redhat-8 splunk-amazon-linux-2023 uf-amazon-linux-2023 uf-redhat-8 test_setup run_small_tests_redhat8 run_large_tests_redhat8
354
375
355
376
test_debian9 : clean ansible splunk-debian-9 uf-debian-9 test_setup run_small_tests_debian9 run_large_tests_debian9
356
377
0 commit comments