File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ COPY --from=build /app/out .
1313
1414RUN apt-get update && apt-get install -y dotnet-sdk-8.0
1515
16+ COPY entrypoint.sh /app/entrypoint.sh
17+ RUN chmod +x /app/entrypoint.sh
18+
1619WORKDIR /runner
1720VOLUME /runner
1821
19- ENTRYPOINT ["dotnet" , " /app/Runner.dll " ]
22+ ENTRYPOINT ["/app/entrypoint.sh " ]
Original file line number Diff line number Diff line change 1+ services :
2+ runner :
3+ image : mihazupan/runtime-utils:runner
4+ container_name : runtime-utils-runner
5+ pull_policy : always
6+ restart : always
7+ volumes :
8+ - ./runner:/runner
9+ environment :
10+ - JOB_TYPE=JitDiffJob
11+ - RUNNER_ID=RunnerName
12+ - RUNNER_TOKEN=foo
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Clean up the runner work directory before each run
4+ find /runner -mindepth 1 -delete 2> /dev/null || true
5+
6+ dotnet /app/Runner.dll " $@ "
7+ exit_code=$?
8+
9+ if [ $exit_code -ne 0 ]; then
10+ echo " Runner exited with code $exit_code , sleeping for 60 seconds..."
11+ sleep 60
12+ fi
13+
14+ exit $exit_code
You can’t perform that action at this time.
0 commit comments