-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (28 loc) · 896 Bytes
/
Dockerfile
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
ARG DOCKER_FROM=''
FROM $DOCKER_FROM as splunk-enterprise
ARG CONTAINER_RUN=''
ENV TZ="Europe/Madrid"
WORKDIR /usr/local
COPY splunk-enterprise.tgz .
RUN tar -xzf splunk-enterprise.tgz && $CONTAINER_RUN
WORKDIR /usr/local/splunk/etc
COPY server.conf system/local
COPY splunk-launch.conf .
COPY user-seed.conf system/local
CMD /usr/local/splunk/bin/splunk start --answer-yes --accept-license --no-prompt \
&& tail -f /dev/null
FROM splunk-enterprise as hf
WORKDIR /usr/local/splunk
COPY outputs.conf etc/system/local
FROM splunk-enterprise as idx
WORKDIR /usr/local/splunk
COPY inputs.conf etc/system/local
FROM splunk-enterprise as test-sh
WORKDIR /tmp
COPY distsearch.conf /usr/local/splunk/etc/system/local
FROM splunk-enterprise as shcluster-captain
WORKDIR /tmp
COPY shcluster_members.txt .
COPY bootstrap_captain.py .
CMD python bootstrap_captain.py \
&& tail -f /dev/null