From 1b1ec7629b9b5ae18ddb31c1c15402d6a39ff766 Mon Sep 17 00:00:00 2001 From: Mart124 <37041094+Mart124@users.noreply.github.com> Date: Thu, 24 May 2018 21:56:55 +0200 Subject: [PATCH] Workaround to disable mssql telemetry in DockerFile (#294) --- util/MsSql/Dockerfile | 3 +++ util/MsSql/entrypoint.sh | 5 ----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/util/MsSql/Dockerfile b/util/MsSql/Dockerfile index 4787883478..dc5203391b 100644 --- a/util/MsSql/Dockerfile +++ b/util/MsSql/Dockerfile @@ -16,5 +16,8 @@ RUN chmod +x /entrypoint.sh \ && chmod +x /backup-db.sh RUN /opt/mssql/bin/mssql-conf set telemetry.customerfeedback false +# As the setting above does not work, let's use the workaround below +RUN echo 127.0.0.1 settings-win.data.microsoft.com >> /etc/hosts +RUN echo 127.0.0.1 vortex.data.microsoft.com >> /etc/hosts ENTRYPOINT ["/entrypoint.sh"] diff --git a/util/MsSql/entrypoint.sh b/util/MsSql/entrypoint.sh index 8990680231..c54e8637ba 100644 --- a/util/MsSql/entrypoint.sh +++ b/util/MsSql/entrypoint.sh @@ -66,9 +66,4 @@ chown $USERNAME:$GROUPNAME /backup-db.sql env >> /etc/environment cron -# Workaround to disable mssql telemetry - -echo "127.0.0.1 settings-win.data.microsoft.com" >> /etc/hosts -echo "127.0.0.1 vortex.data.microsoft.com" >> /etc/hosts - gosu $USERNAME:$GROUPNAME /opt/mssql/bin/sqlservr