Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install powershell and azure-cli on deb 12 #1187

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 && \
mmitche marked this conversation as resolved.
Show resolved Hide resolved
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/*