File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ RUN chown $GROUP_ID:$USER_ID $(pwd)
13
13
COPY ./*.sln ./nuget.config ./*.Build.props ./*.Build.targets ./
14
14
15
15
COPY ./dotnet-tools.json ./
16
- RUN dotnet tool restore
17
16
18
17
# todo standardize on Build.props as Directory.Build.props needs that form
19
18
COPY ./src/*.Build.props ./src/
@@ -31,19 +30,21 @@ RUN for file in $(find . -name "*.?sproj"); do mkdir -p $(dirname $file)/$(basen
31
30
COPY build/scripts/scripts.fsproj ./build/scripts/
32
31
COPY .ci/Jenkins.csproj ./.ci/
33
32
34
- RUN chown -R $GROUP_ID:$USER_ID $(pwd)
33
+ # Install app dependencies
34
+ RUN dotnet restore
35
+ RUN dotnet tool restore
36
+
35
37
RUN chown -R $GROUP_ID:$USER_ID $(pwd)
36
38
RUN chown -R $GROUP_ID:$USER_ID /tmp/NuGetScratch
37
- USER user
38
-
39
- # Install app dependencies
40
- RUN dotnet restore
41
39
42
40
# copy relevant files (see .dockerignore)
43
41
COPY . .
44
42
45
43
# making sure enough git info is available inside the container
46
44
RUN git rev-parse HEAD .
47
45
46
+ # USER user
47
+
48
+
48
49
49
50
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ TASK=$1
14
14
TASK_ARGS=()
15
15
VERSION=$2
16
16
STACK_VERSION=$VERSION
17
+ REPO_BINDING=" $repo :/sln"
17
18
set -euo pipefail
18
19
19
20
output_folder=" .ci/output"
@@ -48,6 +49,7 @@ case $CMD in
48
49
TASK=codegen
49
50
# VERSION is BRANCH here for now
50
51
TASK_ARGS=(" $VERSION " )
52
+ REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
51
53
;;
52
54
* )
53
55
echo -e " \nUsage:\n\t $CMD is not supported right now\n"
59
61
docker run \
60
62
--env " DOTNET_VERSION" \
61
63
--name test-runner \
62
- --volume " $repo :/sln " \
64
+ --volume $REPO_BINDING \
63
65
--rm \
64
66
elastic/elasticsearch-net \
65
67
./build.sh $TASK " ${TASK_ARGS[@]} "
You can’t perform that action at this time.
0 commit comments