From 06b13d8e2704df915a32f1e8778abf9074f5abb2 Mon Sep 17 00:00:00 2001 From: Juraj Martinka Date: Tue, 9 Apr 2019 22:03:06 +0200 Subject: [PATCH] Downgrade libcurl to fix git authentication issues when using personal access tokens with Azure DevOps This is a problem with libcurl 7.61.0 installed with 18.10. See - https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/issues/102 - https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1805203 --- docker-codescene/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-codescene/Dockerfile b/docker-codescene/Dockerfile index e453cd9..8b5faa8 100644 --- a/docker-codescene/Dockerfile +++ b/docker-codescene/Dockerfile @@ -1,7 +1,10 @@ FROM ubuntu:18.10 -RUN apt-get update; apt-get install -y git openjdk-11-jdk -RUN apt-get install -y locales +# To workaround git authentication issues with libcurl 7.61.0 installed with 18.10 +# Azure DevOps clone fails with personal access tokens -> see https://github.com/Microsoft/Git-Credential-Manager-for-Mac-and-Linux/issues/102 +RUN echo "deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted" >> /etc/apt/sources.list + +RUN apt-get update; apt-get install -y git openjdk-11-jdk locales libcurl3-gnutls=7.58.0* ## because this is Docker, we can just set these without bothering ## with most of the locale infrastructure