michaelsembwever commented on code in PR #2852:
URL: https://github.com/apache/cassandra/pull/2852#discussion_r3294354798


##########
.build/docker/_docker_run.sh:
##########
@@ -118,11 +122,11 @@ docker_command="export 
ANT_OPTS=\"-Dbuild.dir=\${DIST_DIR} ${CASSANDRA_DOCKER_AN
 # run without the default seccomp profile
 # re-use the host's maven repository
 container_id=$(docker run --name ${container_name} -d --security-opt 
seccomp=unconfined --rm \
-    -v "${cassandra_dir}":/home/build/cassandra -v 
~/.m2/repository/:/home/build/.m2/repository/ -v "${build_dir}":/dist \
+    -v "${cassandra_dir}":/home/build/cassandra -v 
${m2_dir}:/home/build/.m2/repository/ -v "${build_dir}":/dist \

Review Comment:
   the reason for the m2_dirĀ  override in jenkins is maven does not support 
multiple builds downloading at the same time (believe it or not).
   we can't share the same ~/.m2/repository to multiple containers, or writing 
to the same file leaves corruption.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to