-
Notifications
You must be signed in to change notification settings - Fork 0
/
splunk_local_launch.sh
executable file
·48 lines (35 loc) · 1.51 KB
/
splunk_local_launch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set +x
#
# GLOBAL VALUES
#
#
# Helper functions
#
#
# MAIN
#
# Clean out existing saved defaults.
docker stop splunk
docker rm splunk
# -v $PWD/license/License.xml:/tmp/License.xml:ro \
#-e SPLUNK_LICENSE_URI=/tmp/License.xml \
#-e SPLUNK_LAUNCH_CONF=OPTIMISTIC_ABOUT_FILE_LOCKING=1 \
docker run -d \
-p 8000:8000 \
-p 8088:8088 \
-p 8089:8089 \
-e 'SPLUNK_START_ARGS=--accept-license' \
-e 'SPLUNK_PASSWORD=password123' \
-e 'SPLUNK_APPS_URL=/tmp/lma.tgz,/tmp/splunk_httpinput.tgz' \
-e SPLUNK_LICENSE_URI=/tmp/License.xml \
-v $PWD/license/License.xml:/tmp/License.xml:ro \
-v $PWD/configs/lma.tgz:/tmp/lma.tgz:ro \
-v $PWD/configs/splunk_httpinput.tgz:/tmp/splunk_httpinput.tgz:ro \
-v $PWD/configs/default.yml/:/tmp/defaults/default.yml:ro \
--name=splunk \
--hostname=splunk \
--memory=4g \
splunk/splunk:8.1
#splunk/splunk:8.0.4-debian
echo "Need to wait for the splunk service to be available.... check with 'docker logs -f splunk' "