From 9f0643f456d7fe3a4e2cae50788579a373c6f672 Mon Sep 17 00:00:00 2001 From: AlfonsoRBJ Date: Tue, 13 Nov 2018 14:51:14 +0100 Subject: [PATCH 1/2] Added SMTP packages We have added the SMTP packages that are missing. For its installation we have to add the universe repository. --- docker-compose.yml | 2 +- wazuh/Dockerfile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e910c6f3..cf906072 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '2' services: wazuh: - image: wazuh/wazuh:3.7.0_6.4.3 + build: ./wazuh hostname: wazuh-manager restart: always ports: diff --git a/wazuh/Dockerfile b/wazuh/Dockerfile index 5b636813..3595e768 100644 --- a/wazuh/Dockerfile +++ b/wazuh/Dockerfile @@ -21,10 +21,13 @@ RUN useradd -u 1000 -g 1000 -d /var/ossec ossec RUN echo "postfix postfix/mailname string wazuh-manager" | debconf-set-selections RUN echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections +# Add universe repository +RUN add-apt-repository universe + # Install packages RUN apt-get update && apt-get -y install openssl postfix bsd-mailx python-boto python-pip \ apt-transport-https vim expect nodejs python-cryptography wazuh-manager=${WAZUH_VERSION} \ - wazuh-api=${WAZUH_VERSION} + wazuh-api=${WAZUH_VERSION} mailutils libsasl2-modules # Adding first run script. ADD config/data_dirs.env /data_dirs.env From fb0409697fd3c88388ad9bf0f33c896108c7b5e4 Mon Sep 17 00:00:00 2001 From: AlfonsoRBJ Date: Fri, 16 Nov 2018 16:03:49 +0100 Subject: [PATCH 2/2] Update docker-compose.yml When merging the code, the build section for the wazuh container will not be necessary. --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index cf906072..e910c6f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '2' services: wazuh: - build: ./wazuh + image: wazuh/wazuh:3.7.0_6.4.3 hostname: wazuh-manager restart: always ports: