From 824f8209357895e486c1b63b8e98cab921e28a88 Mon Sep 17 00:00:00 2001 From: Davor Runje Date: Tue, 12 Mar 2024 19:47:39 +0000 Subject: [PATCH] git-lhs added to devcontainers --- .devcontainer/Dockerfile | 7 ++++++- .devcontainer/dev/Dockerfile | 6 +++++- .devcontainer/full/Dockerfile | 5 ++++- .devcontainer/studio/Dockerfile | 7 ++++++- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f2dd4b84d4cb..8a75a1487ff1 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,9 +9,13 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:3.10 # Update the OS and maybe install packages # ENV DEBIAN_FRONTEND=noninteractive + +# add git lhs to apt +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + RUN apt-get update \ && apt-get upgrade -y \ - && apt-get -y install --no-install-recommends build-essential npm \ + && apt-get -y install --no-install-recommends build-essential npm git-lfs \ && apt-get autoremove -y \ && apt-get clean -y \ && arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \ @@ -22,6 +26,7 @@ ENV DEBIAN_FRONTEND=dialog # For docs RUN npm install --global yarn +RUN pip install --upgrade pip RUN pip install pydoc-markdown RUN pip install pyyaml RUN pip install colored diff --git a/.devcontainer/dev/Dockerfile b/.devcontainer/dev/Dockerfile index 4749e41ba6df..c5de08f4971c 100644 --- a/.devcontainer/dev/Dockerfile +++ b/.devcontainer/dev/Dockerfile @@ -1,10 +1,13 @@ # Basic setup FROM python:3.11-slim-bookworm +# add git lhs to apt +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + # Update and install necessary packages RUN apt-get update && apt-get -y update # added vim and nano for convenience -RUN apt-get install -y sudo git npm vim nano curl wget +RUN apt-get install -y sudo git npm vim nano curl wget git-lhs # Setup a non-root user 'autogen' with sudo access RUN adduser --disabled-password --gecos '' autogen @@ -44,6 +47,7 @@ ENV PATH="${PATH}:/home/autogen/quarto/quarto-1.5.23/bin/" EXPOSE 3000 # Pre-load popular Python packages +RUN pip install --upgrade pip RUN pip install numpy pandas matplotlib seaborn scikit-learn requests urllib3 nltk pillow pytest beautifulsoup4 # Set the default command to bash diff --git a/.devcontainer/full/Dockerfile b/.devcontainer/full/Dockerfile index 15122b2ac552..8b33e7431c79 100644 --- a/.devcontainer/full/Dockerfile +++ b/.devcontainer/full/Dockerfile @@ -1,9 +1,12 @@ FROM python:3.11-slim-bookworm +# add git lhs to apt +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + # Update and install dependencies RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - software-properties-common sudo\ + software-properties-common sudo git-lhs \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/studio/Dockerfile b/.devcontainer/studio/Dockerfile index 5bf2d4c27d82..d612cea9dabf 100644 --- a/.devcontainer/studio/Dockerfile +++ b/.devcontainer/studio/Dockerfile @@ -9,9 +9,13 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:3.10 # Update the OS and maybe install packages # ENV DEBIAN_FRONTEND=noninteractive + +# add git lhs to apt +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash + RUN apt-get update \ && apt-get upgrade -y \ - && apt-get -y install --no-install-recommends build-essential npm \ + && apt-get -y install --no-install-recommends build-essential npm git-lfs \ && apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* @@ -19,4 +23,5 @@ ENV DEBIAN_FRONTEND=dialog # For docs RUN npm install --global yarn +RUN pip install --upgrade pip RUN pip install pydoc-markdown