jnturton commented on a change in pull request #2491: URL: https://github.com/apache/drill/pull/2491#discussion_r823462959
########## File path: Dockerfile ########## @@ -56,17 +56,26 @@ RUN VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --n # Set the BASE_IMAGE build arg when you invoke docker build. FROM $BASE_IMAGE -ENV DRILL_HOME=/opt/drill DRILL_USER=drilluser +ENV DRILL_HOME=/opt/drill +ENV DRILL_USER=drilluser +ENV DRILL_USER_HOME=/var/lib/drill +ENV DRILL_LOG_DIR=$DRILL_USER_HOME/log +ENV DATA_VOL=/data -RUN mkdir $DRILL_HOME +RUN mkdir $DRILL_HOME $DATA_VOL + +COPY --from=build /opt/drill $DRILL_HOME RUN groupadd -g 999 $DRILL_USER \ - && useradd -r -u 999 -g $DRILL_USER $DRILL_USER -m -d /var/lib/drill \ - && chown -R $DRILL_USER: $DRILL_HOME + && useradd -r -u 999 -g $DRILL_USER $DRILL_USER -m -d $DRILL_USER_HOME \ + && chown $DRILL_USER: $DATA_VOL \ + && chmod -R +r $DRILL_HOME Review comment: @vvysotskyi it introduces a dependency on something called BuildKit, output from my attempt to use this flag: ``` COPY --from=build --chmod=0755 /opt/drill $DRILL_HOME the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled ``` Do you still think it's worth it? -- 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. To unsubscribe, e-mail: dev-unsubscr...@drill.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org