fix zabbix 6.0
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paolo Asperti 2024-12-31 00:27:44 +01:00
parent 2d2edec55b
commit 739fe90b20
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -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