Skip to content

Commit

Permalink
Install dotnet tools to home
Browse files Browse the repository at this point in the history
  • Loading branch information
toini committed Sep 13, 2023
1 parent c5c424b commit a63109c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions 6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ COPY 99microsoft-dotnet.pref /etc/apt/preferences.d
RUN sudo apt-get update && \
sudo apt-get -y install gettext-base dotnet-sdk-6.0

# Install trx2junit to used during build
# Install trx2junit to be used during build
RUN dotnet tool install -g trx2junit

# Install dotnet tools to be copied to the target image
RUN mkdir dotnet-tools
RUN dotnet tool install --tool-path dotnet-tools dotnet-trace
RUN dotnet tool install --tool-path dotnet-tools dotnet-counters
RUN dotnet tool install --tool-path dotnet-tools dotnet-dump
RUN dotnet tool install --tool-path dotnet-tools dotnet-gcmon
RUN dotnet tool install --tool-path dotnet-tools dotnet-stack
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-trace
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-counters
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-dump
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-gcmon
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-stack

ENV PATH="${PATH}:/home/circleci/.dotnet/tools"
13 changes: 6 additions & 7 deletions 7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ COPY 99microsoft-dotnet.pref /etc/apt/preferences.d
RUN sudo apt-get update && \
sudo apt-get -y install gettext-base dotnet-sdk-7.0

# Install trx2junit to used during build
# Install trx2junit to be used during build
RUN dotnet tool install -g trx2junit

# Install dotnet tools to be copied to the target image
RUN mkdir dotnet-tools
RUN dotnet tool install --tool-path dotnet-tools dotnet-trace
RUN dotnet tool install --tool-path dotnet-tools dotnet-counters
RUN dotnet tool install --tool-path dotnet-tools dotnet-dump
RUN dotnet tool install --tool-path dotnet-tools dotnet-gcmon
RUN dotnet tool install --tool-path dotnet-tools dotnet-stack
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-trace
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-counters
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-dump
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-gcmon
RUN dotnet tool install --tool-path ~/dotnet-tools dotnet-stack

ENV PATH="${PATH}:/home/circleci/.dotnet/tools"

0 comments on commit a63109c

Please sign in to comment.