From 16f6690d72ced17783d6237b52a87bcc30b52481 Mon Sep 17 00:00:00 2001 From: JMJEngineeringConsulting Date: Fri, 24 Nov 2023 13:18:35 -0500 Subject: [PATCH 1/2] add correct python path to Dockerfile to avoid build error, change docker container to use host network to avoid build-time network issues. Tested on Win10 / WSL2. --- Dockerfile-Ubuntu-20.04 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile-Ubuntu-20.04 b/Dockerfile-Ubuntu-20.04 index 72d31c1..11cae30 100644 --- a/Dockerfile-Ubuntu-20.04 +++ b/Dockerfile-Ubuntu-20.04 @@ -26,6 +26,10 @@ RUN rm /bin/sh && ln -s bash /bin/sh ADD https://storage.googleapis.com/git-repo-downloads/repo /usr/local/bin/ RUN chmod 755 /usr/local/bin/repo +# Correct Python path +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 +RUN update-alternatives --config python + # Add your user to sudoers to be able to install other packages in the container. ARG USER RUN echo "${USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${USER} && \ From e5e9505cdd27149017ef1b4f0d5dd7c20fcbb663 Mon Sep 17 00:00:00 2001 From: JMJEngineeringConsulting Date: Fri, 24 Nov 2023 13:20:50 -0500 Subject: [PATCH 2/2] change docker container to use host network to avoid build-time network issues. Tested on Win10 / WSL2. --- docker-build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-build.sh b/docker-build.sh index 1e2afc9..d1ff664 100755 --- a/docker-build.sh +++ b/docker-build.sh @@ -23,6 +23,7 @@ if [ $# -ne 1 ] --build-arg "USER=$(whoami)" \ --build-arg "host_uid=$(id -u)" \ --build-arg "host_gid=$(id -g)" \ + --network host \ -f $1 \ . fi