Skip to content

Commit 63d0217

Browse files
authored
Update Helix Ubuntu prereqs for EF Core (#1455)
1 parent 3177b1f commit 63d0217

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-24.04-helix-amd64
2+
3+
USER root
4+
5+
# Install SQL Server and FTS.
6+
RUN apt-get update \
7+
&& apt-get install -qq -y \
8+
software-properties-common \
9+
&& curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
10+
&& curl -fsSL https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list | tee /etc/apt/sources.list.d/mssql-server-2022.list \
11+
&& apt-get update \
12+
&& apt-get install -y \
13+
mssql-server \
14+
mssql-server-fts \
15+
&& rm -rf /var/lib/apt/lists/*
16+
17+
# Create new user group and add helixbot to it. This user group will have permission to folders which are needed for SQL Server.
18+
RUN groupadd -g 1000 sqlserver_users \
19+
&& usermod -a -G sqlserver_users helixbot \
20+
# Create required directory to avoid giving permission to /.
21+
&& mkdir /var/opt/mssql/.system/system \
22+
&& chgrp -R sqlserver_users /var/opt/mssql \
23+
&& chmod -R 770 /var/opt/mssql
24+
25+
CMD ["/opt/mssql/bin/sqlservr"]
26+
27+
USER helixbot

src/ubuntu/manifest.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@
231231
}
232232
]
233233
},
234+
{
235+
"platforms": [
236+
{
237+
"architecture": "amd64",
238+
"dockerfile": "src/ubuntu/24.04/helix/sqlserver/amd64",
239+
"os": "linux",
240+
"osVersion": "noble",
241+
"tags": {
242+
"ubuntu-24.04-helix-sqlserver": {},
243+
"ubuntu-24.04-helix-sqlserver-amd64": {}
244+
}
245+
}
246+
]
247+
},
234248
{
235249
"platforms": [
236250
{

0 commit comments

Comments
 (0)