Skip to content

Commit 41c33e8

Browse files
authored
Version 18.4 (#4)
Version 18.4
1 parent d015b52 commit 41c33e8

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
- ubuntu: 22.04
3232
sqlcmd: "18.2.1.1-1"
3333
sqlcmd_minor: "18.2"
34+
sqlcmd_major: ""
35+
latest: false
36+
package_suffix: "18"
37+
package_path: "/opt/mssql-tools18"
38+
- ubuntu: 24.04
39+
sqlcmd: "18.4.1.1-1"
40+
sqlcmd_minor: "18.4"
3441
sqlcmd_major: "18"
3542
latest: true # newest possible version available -> tag as latest ubuntu-latest
3643
package_suffix: "18"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Sqlcmd – command line tool for Microsoft SQL Server.
99

1010
## Available tags
1111

12-
* 18.2.1.1-1-ubuntu22.04, 18.2.1.1-1, 18.2-ubuntu, 18.2, 18-ubuntu, 18, latest-ubuntu, latest
12+
* 18.4.1.1-1-ubuntu24.04, 18.4.1.1-1, 18.4-ubuntu, 18.4, 18-ubuntu, 18, latest-ubuntu, latest
13+
* 18.2.1.1-1-ubuntu22.04, 18.2.1.1-1, 18.2-ubuntu, 18.2,
1314
* 17.10.1.1-1-ubuntu22.04, 17.10.1.1-1, 17.10-ubuntu, 17.10, 17-ubuntu, 17
1415
* 17.4.1.1-1-ubuntu18.04, 17.4.1.1-1, 17.4-ubuntu, 17.4
1516

ubuntu/Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,22 @@ RUN apt-get -qqq update \
1616
dos2unix \
1717
&& locale-gen "en_US.UTF-8" \
1818
\
19-
&& export `grep "VERSION_ID" /etc/os-release | sed -e 's/^VERSION_ID=\"/VERSION_ID=/' -e 's/\"$//'` \
20-
&& mkdir -p /etc/apt/keyrings/ \
21-
&& curl --fail https://packages.microsoft.com/config/ubuntu/$VERSION_ID/prod.list | \
22-
sed -E 's#deb\s+\[#deb [signed-by=/etc/apt/keyrings/microsoft.gpg #; t; q1' | \
23-
tee /etc/apt/sources.list.d/microsoft.list \
24-
&& curl --fail https://packages.microsoft.com/keys/microsoft.asc | \
25-
gpg --verbose --yes --no-tty --batch --dearmor -o /etc/apt/keyrings/microsoft.gpg \
19+
&& export $(grep "VERSION_ID" /etc/os-release | sed -e 's/^VERSION_ID=\"/VERSION_ID=/' -e 's/\"$//') \
20+
&& mkdir -p /usr/share/keyrings \
21+
&& curl --fail --show-error https://packages.microsoft.com/config/ubuntu/$VERSION_ID/prod.list -o /tmp/microsoft-prod.list \
22+
&& if ! grep -q "signed-by=" /tmp/microsoft-prod.list; then \
23+
sed -E 's#deb\s+\[#deb [signed-by=/usr/share/keyrings/microsoft-prod.gpg #; t; q1' /tmp/microsoft-prod.list > /etc/apt/sources.list.d/microsoft.list; \
24+
rm /tmp/microsoft-prod.list; \
25+
else \
26+
mv /tmp/microsoft-prod.list /etc/apt/sources.list.d/microsoft.list; \
27+
fi \
28+
&& curl --fail --show-error https://packages.microsoft.com/keys/microsoft.asc | \
29+
gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg \
2630
\
2731
&& apt-get -qqq update \
28-
&& ACCEPT_EULA=Y apt-get install -y mssql-tools$MSSQLTOOLS_SUFFIX=$MSSQLTOOLS_VERSION unixodbc-dev \
29-
&& apt-get remove -y curl apt-transport-https gnupg2 \
30-
&& rm -f /etc/apt/sources.list.d/msprod.list \
31-
&& rm -rf /var/lib/apt/lists/*
32+
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends mssql-tools$MSSQLTOOLS_SUFFIX=$MSSQLTOOLS_VERSION unixodbc-dev \
33+
&& apt-get autoremove -y && apt-get clean \
34+
&& rm -rf /tmp/* /var/lib/apt/lists/*
3235

3336
## should be set after locale was generated, overwise triggers warnings
3437
ENV LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8"

0 commit comments

Comments
 (0)