From 739fe90b20d3da752686e5a48a709214ad2ef0ad Mon Sep 17 00:00:00 2001 From: paspo Date: Tue, 31 Dec 2024 00:27:44 +0100 Subject: [PATCH] fix zabbix 6.0 --- src/Dockerfile-6.0 | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Dockerfile-6.0 b/src/Dockerfile-6.0 index 51a3a1e..4d47866 100644 --- a/src/Dockerfile-6.0 +++ b/src/Dockerfile-6.0 @@ -6,18 +6,12 @@ USER root SHELL ["/bin/bash", "-c"] RUN \ - TMPFILE=$(mktemp) && \ - wget -O "${TMPFILE}" https://packages.microsoft.com/keys/microsoft.asc && \ - DEBIAN_FRONTEND=noninteractive apt update && \ - DEBIAN_FRONTEND=noninteractive apt upgrade -y && \ - DEBIAN_FRONTEND=noninteractive apt install -y gnupg && \ - apt-key add "${TMPFILE}" && \ - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EB3E94ADBE1229CF && \ - rm "${TMPFILE}" && \ source /etc/os-release && \ - wget https://packages.microsoft.com/config/ubuntu/${VERSION_ID}/prod.list -O /etc/apt/sources.list.d/mssql-release.list && \ + wget -O "/tmp/a.deb" https://packages.microsoft.com/ubuntu/${VERSION_ID}/prod/pool/main/p/packages-microsoft-prod/packages-microsoft-prod_1.1-ubuntu${VERSION_ID}_all.deb && \ + DEBIAN_FRONTEND=noninteractive apt install -y /tmp/a.deb && \ + rm /tmp/a.deb && \ DEBIAN_FRONTEND=noninteractive apt update && \ - DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt install -y msodbcsql17 mssql-tools && \ + DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt install -y msodbcsql18 mssql-tools18 && \ DEBIAN_FRONTEND=noninteractive apt-get clean USER zabbix