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