File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed
Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 3232 "http_proxy" : " ${localEnv:http_proxy}" ,
3333 "https_proxy" : " ${localEnv:https_proxy}" ,
3434 "no_proxy" : " ${localEnv:no_proxy}" ,
35- "MAVEN_CONFIG " : " ${localEnv:HOME}/.m2" ,
35+ "MAVEN_CONFIG_DIR " : " ${localEnv:HOME}/.m2" ,
3636 "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}" ,
3737 "CONTAINER_WORKSPACE_FOLDER" : " ${containerWorkspaceFolder}"
3838 },
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ docker pull benchbase.azurecr.io/benchbase-dev
7575docker run -it --rm -v /path/to/src:/benchbase benchbase.azurecr.io/benchbase-dev
7676` ` `
7777
78- > Optional: also reuse the local ` MAVEN_CONFIG ` and it' s repository download cache with the following argument:
78+ > Optional: also reuse the local ` MAVEN_CONFIG_DIR ` and it' s repository download cache with the following argument:
7979>
80- > `-v "${MAVEN_CONFIG :-$HOME/.m2}:/home/containeruser/.m2"`
80+ > `-v "${MAVEN_CONFIG_DIR :-$HOME/.m2}:/home/containeruser/.m2"`
8181
8282```sh
8383docker pull benchbase.azurecr.io/benchbase
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ RUN groupadd --non-unique --gid ${CONTAINERUSER_GID} containergroup \
2020 && echo 'containeruser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2121RUN mkdir -p /benchbase/results && chown -R containeruser:containergroup /benchbase/
2222USER containeruser
23- ENV MAVEN_CONFIG=/home/containeruser/.m2
23+ # Unset the upstream MVN_CONFIG value - it interacts poorly with the mvnw wrapper.
24+ ENV MAVEN_CONFIG=
25+ ENV MAVEN_CONFIG_DIR=/home/containeruser/.m2
2426WORKDIR /benchbase
2527VOLUME /benchbase/results
2628
Original file line number Diff line number Diff line change 2626fi
2727
2828cd " $rootdir "
29- MAVEN_CONFIG =" ${MAVEN_CONFIG :- $HOME / .m2} "
30- mkdir -p " $MAVEN_CONFIG " || true
29+ MAVEN_CONFIG_DIR =" ${MAVEN_CONFIG_DIR :- $HOME / .m2} "
30+ mkdir -p " $MAVEN_CONFIG_DIR " || true
3131set -x
3232SRC_DIR=" ${LOCAL_WORKSPACE_FOLDER:- $PWD } "
3333docker run ${INTERACTIVE_ARGS:- } --rm \
@@ -39,5 +39,5 @@ docker run ${INTERACTIVE_ARGS:-} --rm \
3939 --env DO_FORMAT_CHECKS=" $DO_FORMAT_CHECKS " \
4040 --env EXTRA_MAVEN_ARGS=" ${EXTRA_MAVEN_ARGS:- } " \
4141 --user " $CONTAINERUSER_UID :$CONTAINERUSER_GID " \
42- -v " $MAVEN_CONFIG :/home/containeruser/.m2" \
42+ -v " $MAVEN_CONFIG_DIR :/home/containeruser/.m2" \
4343 -v " $SRC_DIR :/benchbase" benchbase-dev:latest $*
You can’t perform that action at this time.
0 commit comments