From 6e590d0764d04e4b1d9962441fe6a3412f387cd5 Mon Sep 17 00:00:00 2001 From: Erwin Ried <1091420+eried@users.noreply.github.com> Date: Wed, 20 May 2020 14:48:44 +0200 Subject: [PATCH] Fixing python in the dockerfiles For some misterious reason it broke... --- dockerfile | 5 +++++ dockerfile-nogit | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 3c84d94a..1f065ce0 100644 --- a/dockerfile +++ b/dockerfile @@ -23,6 +23,11 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ #Fetch additional dependencies from Python 2.x pip RUN pip install pyyaml +RUN ln -s /usr/bin/python3 /usr/bin/python && \ + ln -s /usr/bin/pip3 /usr/bin/pip + +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 #Grab the GNU ARM toolchain from arm.com #Then extract contents to /opt/build/armbin/ diff --git a/dockerfile-nogit b/dockerfile-nogit index faea35d2..114b6bc8 100644 --- a/dockerfile-nogit +++ b/dockerfile-nogit @@ -11,7 +11,7 @@ WORKDIR /havoc/firmware # Fetch dependencies from APT RUN apt-get update && \ - apt-get install -y git tar wget dfu-util cmake python3 bzip2 ccache curl && \ + apt-get install -y git tar wget dfu-util cmake python3 ccache bzip2 curl && \ apt-get -qy autoremove #Install current pip from PyPa @@ -20,6 +20,11 @@ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ #Fetch additional dependencies from Python 3.x pip RUN pip install pyyaml +RUN ln -s /usr/bin/python3 /usr/bin/python && \ + ln -s /usr/bin/pip3 /usr/bin/pip + +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 # Grab the GNU ARM toolchain from arm.com # Then extract contents to /opt/build/armbin/ @@ -33,4 +38,4 @@ RUN mkdir ~/bin && cd ~/bin && \ for tool in gcc g++ cpp c++;do ln -s $(which ccache) arm-none-eabi-$tool;done CMD cd .. && cd build && \ - cmake .. && make firmware + cmake .. && make firmware \ No newline at end of file -- GitLab