Skip to content

Commit 41205f4

Browse files
authored
Add trixie-based gcc image (#1520)
1 parent 245a495 commit 41205f4

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM library/gcc:15-trixie
2+
3+
# Dependencies for dotnet/runtime native components.
4+
RUN apt-get update \
5+
&& apt-get upgrade -y \
6+
&& apt-get install -y \
7+
apt-transport-https \
8+
curl \
9+
&& curl -sL https://packages.microsoft.com/config/debian/13/packages-microsoft-prod.deb -o packages-microsoft-prod.deb \
10+
&& dpkg -i packages-microsoft-prod.deb \
11+
&& rm packages-microsoft-prod.deb \
12+
&& apt-get update \
13+
&& apt-get install -y \
14+
azure-cli \
15+
cmake \
16+
gdb \
17+
git \
18+
iputils-ping \
19+
libicu-dev \
20+
libkrb5-dev \
21+
liblttng-ust-dev \
22+
libssl-dev \
23+
liblldb-dev \
24+
lttng-tools \
25+
locales \
26+
locales-all \
27+
pigz \
28+
python3-dev \
29+
python3-pip \
30+
sudo \
31+
tzdata \
32+
&& rm -rf /var/lib/apt/lists/* \
33+
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
34+
35+
ENV LANG=en_US.utf8
36+
37+
# These symlinks are required because this docker has gcc-12 suffixed with version and gcc-15 unsuffixed in PATH.
38+
# In the runtime repo, we (by design) give precedence to suffixed compilers before selecting unsuffixed one in PATH.
39+
RUN ln -s $(command -v gcc) /usr/bin/gcc-15 \
40+
&& ln -s $(command -v g++) /usr/bin/g++-15

src/debian/manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@
137137
"variant": "v7"
138138
}
139139
]
140+
},
141+
{
142+
"platforms": [
143+
{
144+
"architecture": "amd64",
145+
"dockerfile": "src/debian/13/gcc15/amd64",
146+
"os": "linux",
147+
"osVersion": "trixie",
148+
"tags": {
149+
"debian-13-gcc15-amd64": {}
150+
}
151+
}
152+
]
140153
}
141154
]
142155
}

0 commit comments

Comments
 (0)