From 5f6ba197b2c91505fbd6498905690b950aab0230 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Sabzevar Date: Wed, 25 May 2022 12:21:30 +0200 Subject: [PATCH] add Dockerfile with rhel8 as base image --- linux/mssql-tools/Dockerfile.rhel8 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 linux/mssql-tools/Dockerfile.rhel8 diff --git a/linux/mssql-tools/Dockerfile.rhel8 b/linux/mssql-tools/Dockerfile.rhel8 new file mode 100644 index 0000000..2bc3e30 --- /dev/null +++ b/linux/mssql-tools/Dockerfile.rhel8 @@ -0,0 +1,16 @@ +# SQL Server Command Line Tools +FROM redhat/ubi8 + +LABEL maintainer="SQL Server Engineering Team" + +# adding custom MS repository +RUN yum install -y https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm + +# install SQL Server drivers and tools +RUN ACCEPT_EULA=Y yum install -y msodbcsql18 mssql-tools18 + +# add the binary location to the $PATH +RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc +RUN /bin/bash -c "source ~/.bashrc" + +CMD /bin/bash