clean Dockerfile and docker-compose start script

This commit is contained in:
vcerenu
2022-02-15 11:13:48 -03:00
parent 803c9b7062
commit 5bc8693bbc
4 changed files with 6 additions and 21 deletions

View File

@@ -57,8 +57,6 @@ services:
- ELASTICSEARCH_PASSWORD=admin
- SERVER_SSL_ENABLED=false
- WAZUH_API_URL=https://wazuh.manager
#volumes:
# - ./production_cluster/wazuh_dashboard/dashboard.yml:/etc/wazuh-dashboard/dashboard.yml
volumes:
ossec_api_configuration:

View File

@@ -152,7 +152,6 @@ services:
- ./production_cluster/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/etc/wazuh-dashboard/certs/wazuh-dashboard-key.pem
- ./production_cluster/wazuh_indexer_ssl_certs/root-ca.pem:/etc/wazuh-dashboard/certs/root-ca.pem
- ./production_cluster/wazuh_dashboard/dashboard.yml:/etc/wazuh-dashboard/dashboard.yml
#- ./production_cluster/wazuh_dashboard/wazuh:/usr/share/wazuh-dashboard/data/wazuh
depends_on:
- wazuh1.indexer
links:

View File

@@ -1,8 +0,0 @@
hosts:
- default:
url: https://wazuh.master
port: 55000
username: acme-user
password: MyS3cr37P450r.*-
run_as: false

View File

@@ -12,23 +12,19 @@ RUN sha256sum -c ${tini_bin}.sha256sum && \
rm ${tini_bin}.sha256sum && \
mv ${tini_bin} /tini && \
chmod +x /tini
#RUN mkdir /usr/share/wazuh-indexer
#WORKDIR /usr/share/opensearch
#RUN tar zxf /opt/opensearch.tar.gz --strip-components=1
#RUN sed -i -e 's/OPENSEARCH_DISTRIBUTION_TYPE=tar/OPENSEARCH_DISTRIBUTION_TYPE=docker/' /usr/share/opensearch/bin/opensearch-env
#RUN mkdir -p config config/jvm.options.d data logs
#RUN chmod 0775 config config/jvm.options.d data logs
#COPY config/opensearch.yml config/log4j2.properties config/
#RUN chmod 0660 config/opensearch.yml config/log4j2.properties
COPY config/unattended_installer.tar.gz /
COPY config/config.sh .
RUN tar -xzvf /unattended_installer.tar.gz
RUN bash config.sh
################################################################################
# Build stage 1 (the actual OpenSearch image):
# Build stage 1 (the actual Wazuh indexer image):
#
# Copy opensearch from stage 0
# Copy wazuh-indexer from stage 0
# Add entrypoint
################################################################################
FROM ubuntu:focal