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 32
32
"http_proxy" : " ${localEnv:http_proxy}" ,
33
33
"https_proxy" : " ${localEnv:https_proxy}" ,
34
34
"no_proxy" : " ${localEnv:no_proxy}" ,
35
- "MAVEN_CONFIG " : " ${localEnv:HOME}/.m2" ,
35
+ "MAVEN_CONFIG_DIR " : " ${localEnv:HOME}/.m2" ,
36
36
"LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}" ,
37
37
"CONTAINER_WORKSPACE_FOLDER" : " ${containerWorkspaceFolder}"
38
38
},
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ docker pull benchbase.azurecr.io/benchbase-dev
75
75
docker run -it --rm -v /path/to/src:/benchbase benchbase.azurecr.io/benchbase-dev
76
76
` ` `
77
77
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:
79
79
>
80
- > `-v "${MAVEN_CONFIG :-$HOME/.m2}:/home/containeruser/.m2"`
80
+ > `-v "${MAVEN_CONFIG_DIR :-$HOME/.m2}:/home/containeruser/.m2"`
81
81
82
82
```sh
83
83
docker 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 \
20
20
&& echo 'containeruser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
21
21
RUN mkdir -p /benchbase/results && chown -R containeruser:containergroup /benchbase/
22
22
USER 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
24
26
WORKDIR /benchbase
25
27
VOLUME /benchbase/results
26
28
Original file line number Diff line number Diff line change 26
26
fi
27
27
28
28
cd " $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
31
31
set -x
32
32
SRC_DIR=" ${LOCAL_WORKSPACE_FOLDER:- $PWD } "
33
33
docker run ${INTERACTIVE_ARGS:- } --rm \
@@ -39,5 +39,5 @@ docker run ${INTERACTIVE_ARGS:-} --rm \
39
39
--env DO_FORMAT_CHECKS=" $DO_FORMAT_CHECKS " \
40
40
--env EXTRA_MAVEN_ARGS=" ${EXTRA_MAVEN_ARGS:- } " \
41
41
--user " $CONTAINERUSER_UID :$CONTAINERUSER_GID " \
42
- -v " $MAVEN_CONFIG :/home/containeruser/.m2" \
42
+ -v " $MAVEN_CONFIG_DIR :/home/containeruser/.m2" \
43
43
-v " $SRC_DIR :/benchbase" benchbase-dev:latest $*
You can’t perform that action at this time.
0 commit comments