build scripts: the .m2 directory should be initialized with something otherwise the chmod effect may be discarded

if no Maven cache volume is specified for `docker run`

GitOrigin-RevId: 893ece01b4e94d1fa862f6eb7e77237da910e918
This commit is contained in:
Dmitriy.Panov
2025-01-14 16:28:23 +01:00
committed by intellij-monorepo-bot
parent c721c99a85
commit db22e01a4a

View File

@@ -18,6 +18,9 @@ RUN apt-get update && \
VOLUME /home/ide_builder/.m2
# the home directory should exist and be writable for any user used to launch a container because it is required for the IDE
RUN useradd --create-home ide_builder && \
# the .m2 directory should be initialized with something \
# otherwise the `chmod` effect is discarded if no Maven cache volume is specified for `docker run`
mkdir -p /home/ide_builder/.m2/repository && \
chmod --recursive a+rwx /home/ide_builder
# for jps-bootstrap itself
ENV BOOTSTRAP_SYSTEM_PROPERTIES="-Duser.home=/home/ide_builder"