From 65f02f4f0c5efb624f5b8ecb2ab61c626bbac9ac Mon Sep 17 00:00:00 2001 From: Sebastian Waldbauer Date: Tue, 24 Aug 2021 10:39:04 +0200 Subject: [PATCH] FIX: Create intelmq_persistence before mounting We discovered an permission problem on some machines, because intelmq_persistence will get mounted afterwards via volume. So we create it beforehand & change its permission with owner rights and then mount it in the container. Signed-off-by: Sebastian Waldbauer --- .docker/intelmq-full/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.docker/intelmq-full/Dockerfile b/.docker/intelmq-full/Dockerfile index eb2e086..ea55345 100644 --- a/.docker/intelmq-full/Dockerfile +++ b/.docker/intelmq-full/Dockerfile @@ -45,7 +45,9 @@ COPY ./intelmq-api /etc/intelmq-api RUN useradd -d /etc/intelmq -U -s /bin/bash intelmq \ && adduser intelmq sudo \ && echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ - && sudo chown -R intelmq:intelmq /etc/intelmq + && sudo chown -R intelmq:intelmq /etc/intelmq \ + && mkdir /opt/intelmq_persistence \ + && sudo chown -R intelmq:intelmq /opt/intelmq_persistence ### Install IntelMQ RUN cd /etc/intelmq \