[#1] 修改es/kibana应用账号的uid和gid, 对齐算力平台挂载目录;增加保存ip地址

This commit is contained in:
root
2025-09-17 08:40:47 +00:00
parent 40af0e74b7
commit d6dfdc3796
4 changed files with 27 additions and 2 deletions

View File

@@ -16,6 +16,15 @@ fi
ln -sf /private/argus/log/elasticsearch /usr/share/elasticsearch/data
# 记录容器ip地址
DOMAIN=es.log.argus.com
IP=`ifconfig | grep -A 1 eth0 | grep inet | awk '{print $2}'`
echo current IP: ${IP}
echo ${IP} > /private/argus/etc/${DOMAIN}
# 更新dns,执行
/private/argus/etc/update-dns.sh
echo "[INFO] Data directory linked: /usr/share/elasticsearch/data -> /private/argus/log/elasticsearch"
# 设置环境变量(ES配置通过docker-compose传递)
@@ -24,4 +33,4 @@ export ES_JAVA_OPTS="${ES_JAVA_OPTS:-"-Xms512m -Xmx512m"}"
echo "[INFO] Starting Elasticsearch process..."
# 启动原始的Elasticsearch entrypoint
exec /usr/local/bin/docker-entrypoint.sh elasticsearch
exec /usr/local/bin/docker-entrypoint.sh elasticsearch