From b27de0c1f5c48d1ea8b4cc140197c0328159c7df Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Tue, 10 Aug 2021 00:39:01 +0200 Subject: [PATCH] Update Python in dev containers and add .gitattributes (#2021) * Update .devcontainer Dockerfile and create .gitattributes Signed-off-by: jorturfer * Update some endlines Signed-off-by: jorturfer * Update python3 automation method Signed-off-by: jorturfer --- .devcontainer/Dockerfile | 4 ++-- .gitattributes | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 1d9fb42241d..cf6c25661c0 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -70,8 +70,8 @@ RUN apt-get update \ && apt-get install -y docker-ce-cli \ # # Install pip & pre-commit - && apt-get -y install python-pip \ - && pip install --no-cache-dir pre-commit \ + && apt-get -y install python3-pip \ + && python3 -m pip install --no-cache-dir pre-commit \ # # Clean up && apt-get autoremove -y \ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..7509237fb97 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# normalize all introduced text files to LF line endings (recognized by git) + * text=auto + # additionally declare text file types + *.sh text eol=lf