mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-21 14:58:43 +00:00
Fixed conflicts
This commit is contained in:
@@ -8,9 +8,8 @@ ADD https://packages.wazuh.com/wazuhapp/wazuhapp-3.9.1_7.1.0.zip /tmp
|
|||||||
RUN /usr/share/kibana/bin/kibana-plugin install file:///tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
|
RUN /usr/share/kibana/bin/kibana-plugin install file:///tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
|
||||||
RUN rm -rf /tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
|
RUN rm -rf /tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
|
||||||
|
|
||||||
COPY config/entrypoint.sh /entrypoint.sh
|
COPY config/entrypoint.sh ./entrypoint.sh
|
||||||
|
RUN chmod 755 ./entrypoint.sh
|
||||||
RUN chmod 755 /entrypoint.sh
|
|
||||||
|
|
||||||
USER kibana
|
USER kibana
|
||||||
|
|
||||||
@@ -73,4 +72,4 @@ RUN ./welcome_wazuh.sh
|
|||||||
|
|
||||||
RUN /usr/local/bin/kibana-docker --optimize
|
RUN /usr/local/bin/kibana-docker --optimize
|
||||||
|
|
||||||
ENTRYPOINT /entrypoint.sh
|
ENTRYPOINT ./entrypoint.sh
|
||||||
|
|||||||
@@ -22,6 +22,22 @@ if [ "$ELASTICSEARCH_KIBANA_IP" != "" ]; then
|
|||||||
sed -i 's|http://elasticsearch:9200|'$ELASTICSEARCH_KIBANA_IP'|g' /usr/share/kibana/config/kibana.yml
|
sed -i 's|http://elasticsearch:9200|'$ELASTICSEARCH_KIBANA_IP'|g' /usr/share/kibana/config/kibana.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If KIBANA_INDEX was set, then change the default index in kibana.yml configuration file. If there was an index, then delete it and recreate.
|
||||||
|
if [ "$KIBANA_INDEX" != "" ]; then
|
||||||
|
if grep -q 'kibana.index' /usr/share/kibana/config/kibana.yml; then
|
||||||
|
sed -i '/kibana.index/d' /usr/share/kibana/config/kibana.yml
|
||||||
|
fi
|
||||||
|
echo "kibana.index: $KIBANA_INDEX" >> /usr/share/kibana/config/kibana.yml
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If XPACK_SECURITY_ENABLED was set, then change the xpack.security.enabled option from true (default) to false.
|
||||||
|
if [ "$XPACK_SECURITY_ENABLED" != "" ]; then
|
||||||
|
if grep -q 'xpack.security.enabled' /usr/share/kibana/config/kibana.yml; then
|
||||||
|
sed -i '/xpack.security.enabled/d' /usr/share/kibana/config/kibana.yml
|
||||||
|
fi
|
||||||
|
echo "xpack.security.enabled: $XPACK_SECURITY_ENABLED" >> /usr/share/kibana/config/kibana.yml
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$KIBANA_IP" != "" ]; then
|
if [ "$KIBANA_IP" != "" ]; then
|
||||||
kibana_ip="$KIBANA_IP"
|
kibana_ip="$KIBANA_IP"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user