pchang388 edited a comment on pull request #11167: URL: https://github.com/apache/druid/pull/11167#issuecomment-840632389
> Hi @pchang388 the `/opt/druid` under source directory is actually a symlink, and the COPY command replaces the target `/opt/druid` directory by this symbolic link. Since there's no `var` directory in source directory, COPY command could not copy `var` to the target. Hi @FrankChen021 - thanks I took a look back at your explanation here: #11166 Essentially: 1. There is no var/ directory in the /opt from builder 2. Even though we created earlier in the "mkdir -p " step - we are overwriting the entire /opt directory from builder 3. This means var/ disappears since we did a full overwrite of the /opt directory 4. Then uses "VOLUME /opt/druid/var" - which prepares the fs for mounting to external volume 5. Since there is no longer a var/, Docker creates it using user id of the person running the build command in this case appears to be root Makes sense and appreciate you taking the time to help me understand. -- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
