mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Martijn van de Streek
24.14.2020 1532c452b30a89dae339830720697dc02109db77
Create volume mount point for data in Dockerfile (#104)

`/opt/opendj/data` does not exist in the image. Because of this, any
volume mounted to that location will be owned by `root` and unwritable
by `$OPENDJ_USER` by default.

By creating this directory (owned by `$OPENDJ_USER`), a newly created
volume mounted on `/opt/opendj/data` will get its permissions set to
whatever the underlying directory is set to, so OpenDJ can write to it.
1 files modified
3 ■■■■ changed files
opendj-packages/opendj-docker/Dockerfile 3 ●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/Dockerfile
@@ -33,7 +33,8 @@
ADD run.sh /opt/opendj/run.sh
RUN useradd -m -r -u 1001 -G root,sudo $OPENDJ_USER
RUN useradd -m -r -u 1001 -G root,sudo $OPENDJ_USER \
    && install -d -o $OPENDJ_USER /opt/opendj/data
RUN chgrp -R 0 /opt/opendj && \
    chmod -R g=u /opt/opendj && \