Skip to content

Commit

Permalink
Install powershell and azure-cli on deb 12 (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitche authored Aug 22, 2024
1 parent e6db4eb commit 381f9b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/debian/11/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN echo "locales locales/default_environment_locale select en_US.UTF-8" | debco
&& rm "/etc/locale.gen" \
&& dpkg-reconfigure --frontend noninteractive locales

# Install powershell. This is in the debpkg/amd64 docker file as it may not be required in the arm64
# images, and is not actually supported over there.
# Install powershell.
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
Expand Down
14 changes: 14 additions & 0 deletions src/debian/12/gcc14/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM library/gcc:14-bookworm
# Dependencies for dotnet/runtime native components.
RUN apt-get update && \
apt-get install -y \
azure-cli \
cmake \
curl \
gdb \
Expand All @@ -29,3 +30,16 @@ ENV LANG=en_US.utf8
# In the runtime repo, we (by design) give precedence to suffixed compilers before selecting unsuffixed one in PATH.
RUN ln -s $(command -v gcc) /usr/bin/gcc-14 && \
ln -s $(command -v g++) /usr/bin/g++-14

# Install powershell. Specifically use deb 11 PMC because 12 doesn't have it yet.
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
software-properties-common \
curl && \
curl -sL https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -o packages-microsoft-prod.deb && \
dpkg -i packages-microsoft-prod.deb && \
rm packages-microsoft-prod.deb && \
apt-get update && \
apt-get install -y powershell && \
rm -rf /var/lib/apt/lists/*

0 comments on commit 381f9b2

Please sign in to comment.