You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/06/01 17:09:41 UTC

[GitHub] [druid] jacekchalupka commented on issue #9779: Ingestion fails in Docker Compose

jacekchalupka commented on issue #9779:
URL: https://github.com/apache/druid/issues/9779#issuecomment-636991973


   Since docker-compose.yaml mounts ./storage to /opt/data the other workaround is to precreate the folder and set it owner to 1000:1000 and 755 permissions:
   ```
   mkdir storage
   chmod 755 storage
   chown 1000:1000 storage
   ```
   
   I think proper solution would be to modify Dockerfile, so it would precreate a file in the same manner as it does with `/opt/druid/var`:
   ```
   RUN addgroup -S -g 1000 druid \
    && adduser -S -u 1000 -D -H -h /opt/druid -s /bin/sh -g '' -G druid druid \
    && mkdir -p /opt/druid/var \
    && mkdir -p /opt/data \
    && chown -R druid:druid /opt \
    && chmod 775 /opt/druid/var \
    && chmod 775 /opt/data
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org