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 <waldbauer@cert.at>
This commit is contained in:
Sebastian Waldbauer
2021-08-24 10:39:04 +02:00
parent 321e196b26
commit 65f02f4f0c

View File

@@ -45,7 +45,9 @@ COPY ./intelmq-api /etc/intelmq-api
RUN useradd -d /etc/intelmq -U -s /bin/bash intelmq \ RUN useradd -d /etc/intelmq -U -s /bin/bash intelmq \
&& adduser intelmq sudo \ && adduser intelmq sudo \
&& echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ && 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 ### Install IntelMQ
RUN cd /etc/intelmq \ RUN cd /etc/intelmq \