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)
1313COPY ./*.sln ./nuget.config ./*.Build.props ./*.Build.targets ./
1414
1515COPY ./dotnet-tools.json ./
16- RUN dotnet tool restore
1716
1817# todo standardize on Build.props as Directory.Build.props needs that form
1918COPY ./src/*.Build.props ./src/
@@ -31,19 +30,21 @@ RUN for file in $(find . -name "*.?sproj"); do mkdir -p $(dirname $file)/$(basen
3130COPY build/scripts/scripts.fsproj ./build/scripts/
3231COPY .ci/Jenkins.csproj ./.ci/
3332
34- RUN chown -R $GROUP_ID:$USER_ID $(pwd)
33+ # Install app dependencies
34+ RUN dotnet restore
35+ RUN dotnet tool restore
36+
3537RUN chown -R $GROUP_ID:$USER_ID $(pwd)
3638RUN chown -R $GROUP_ID:$USER_ID /tmp/NuGetScratch
37- USER user
38-
39- # Install app dependencies
40- RUN dotnet restore
4139
4240# copy relevant files (see .dockerignore)
4341COPY . .
4442
4543# making sure enough git info is available inside the container
4644RUN git rev-parse HEAD .
4745
46+ # USER user
47+
48+
4849
4950
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ TASK=$1
1414TASK_ARGS=()
1515VERSION=$2
1616STACK_VERSION=$VERSION
17+ REPO_BINDING=" $repo :/sln"
1718set -euo pipefail
1819
1920output_folder=" .ci/output"
@@ -48,6 +49,7 @@ case $CMD in
4849 TASK=codegen
4950 # VERSION is BRANCH here for now
5051 TASK_ARGS=(" $VERSION " )
52+ REPO_BINDING=" ${OUTPUT_DIR} :/sln/${output_folder} "
5153 ;;
5254 * )
5355 echo -e " \nUsage:\n\t $CMD is not supported right now\n"
5961docker run \
6062 --env " DOTNET_VERSION" \
6163 --name test-runner \
62- --volume " $repo :/sln " \
64+ --volume $REPO_BINDING \
6365 --rm \
6466 elastic/elasticsearch-net \
6567 ./build.sh $TASK " ${TASK_ARGS[@]} "
You can’t perform that action at this time.
0 commit comments