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