mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +00:00
prep for elk 8.x, pave way for next t-pot release
This commit is contained in:
parent
f441ec0bfc
commit
d6ea4cdde2
8 changed files with 3 additions and 22 deletions
|
@ -7,8 +7,6 @@ ENV ES_VER=7.16.2 \
|
||||||
# Include dist
|
# Include dist
|
||||||
ADD dist/ /root/dist/
|
ADD dist/ /root/dist/
|
||||||
#
|
#
|
||||||
# Setup env and apt
|
|
||||||
#RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
aria2 \
|
aria2 \
|
||||||
bash \
|
bash \
|
||||||
|
|
|
@ -2,7 +2,6 @@ cluster.name: tpotcluster
|
||||||
node.name: "tpotcluster-node-01"
|
node.name: "tpotcluster-node-01"
|
||||||
xpack.ml.enabled: false
|
xpack.ml.enabled: false
|
||||||
xpack.security.enabled: false
|
xpack.security.enabled: false
|
||||||
#xpack.ilm.enabled: false
|
|
||||||
path:
|
path:
|
||||||
logs: /data/elk/log
|
logs: /data/elk/log
|
||||||
data: /data/elk/data
|
data: /data/elk/data
|
||||||
|
@ -10,7 +9,5 @@ http.host: 0.0.0.0
|
||||||
http.cors.enabled: true
|
http.cors.enabled: true
|
||||||
http.cors.allow-origin: "*"
|
http.cors.allow-origin: "*"
|
||||||
indices.query.bool.max_clause_count: 2000
|
indices.query.bool.max_clause_count: 2000
|
||||||
cluster.initial_master_nodes:
|
cluster.routing.allocation.disk.watermark.enable_for_single_data_node: true
|
||||||
- "tpotcluster-node-01"
|
discovery.type: single-node
|
||||||
discovery.zen.ping.unicast.hosts:
|
|
||||||
- localhost
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ ENV KB_VER=7.16.2
|
||||||
# Include dist
|
# Include dist
|
||||||
ADD dist/ /root/dist/
|
ADD dist/ /root/dist/
|
||||||
#
|
#
|
||||||
# Setup env and apt
|
|
||||||
RUN apk -U --no-cache add \
|
RUN apk -U --no-cache add \
|
||||||
aria2 \
|
aria2 \
|
||||||
curl \
|
curl \
|
||||||
|
@ -27,25 +26,12 @@ RUN apk -U --no-cache add \
|
||||||
#
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
sed -i 's/#server.basePath: ""/server.basePath: "\/kibana"/' /usr/share/kibana/config/kibana.yml && \
|
sed -i 's/#server.basePath: ""/server.basePath: "\/kibana"/' /usr/share/kibana/config/kibana.yml && \
|
||||||
sed -i 's/#kibana.defaultAppId: "home"/kibana.defaultAppId: "dashboards"/' /usr/share/kibana/config/kibana.yml && \
|
|
||||||
sed -i 's/#server.host: "localhost"/server.host: "0.0.0.0"/' /usr/share/kibana/config/kibana.yml && \
|
sed -i 's/#server.host: "localhost"/server.host: "0.0.0.0"/' /usr/share/kibana/config/kibana.yml && \
|
||||||
sed -i 's/#elasticsearch.hosts: \["http:\/\/localhost:9200"\]/elasticsearch.hosts: \["http:\/\/elasticsearch:9200"\]/' /usr/share/kibana/config/kibana.yml && \
|
sed -i 's/#elasticsearch.hosts: \["http:\/\/localhost:9200"\]/elasticsearch.hosts: \["http:\/\/elasticsearch:9200"\]/' /usr/share/kibana/config/kibana.yml && \
|
||||||
sed -i 's/#server.rewriteBasePath: false/server.rewriteBasePath: false/' /usr/share/kibana/config/kibana.yml && \
|
sed -i 's/#server.rewriteBasePath: false/server.rewriteBasePath: false/' /usr/share/kibana/config/kibana.yml && \
|
||||||
echo "xpack.infra.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
echo "xpack.reporting.roles.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
||||||
echo "xpack.logstash.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.canvas.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.spaces.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.apm.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.security.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.uptime.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.securitySolution.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.ml.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "xpack.fleet.enabled: false" >> /usr/share/kibana/config/kibana.yml && \
|
|
||||||
echo "elasticsearch.requestTimeout: 60000" >> /usr/share/kibana/config/kibana.yml && \
|
echo "elasticsearch.requestTimeout: 60000" >> /usr/share/kibana/config/kibana.yml && \
|
||||||
echo "elasticsearch.shardTimeout: 60000" >> /usr/share/kibana/config/kibana.yml && \
|
echo "elasticsearch.shardTimeout: 60000" >> /usr/share/kibana/config/kibana.yml && \
|
||||||
# There is no switch to disable Enterprise Search, so we need to remove it
|
|
||||||
# In order to remove all X-Pack features we need to use OSS versions
|
|
||||||
rm -rf /usr/share/kibana/x-pack/plugins/enterprise_search && \
|
|
||||||
rm -rf /usr/share/kibana/optimize/bundles/* && \
|
rm -rf /usr/share/kibana/optimize/bundles/* && \
|
||||||
/usr/share/kibana/bin/kibana --optimize --allow-root && \
|
/usr/share/kibana/bin/kibana --optimize --allow-root && \
|
||||||
addgroup -g 2000 kibana && \
|
addgroup -g 2000 kibana && \
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue