From 3f21be5ee8f8e29af877950a84f0890ade4d8214 Mon Sep 17 00:00:00 2001 From: michalrudko Date: Thu, 21 Sep 2023 17:25:27 +0200 Subject: [PATCH] Adding bigquery-postgres image (#59) * Adding bigquery-postgres image * Adding release with new image * Adding release with new image cntd. --------- Co-authored-by: Michal Rudko --- .github/workflows/build_dataops.yml | 2 +- .github/workflows/release_dataops.yml | 2 +- jupyterlab-dataops/Dockerfile | 28 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_dataops.yml b/.github/workflows/build_dataops.yml index 8056861..9d252b3 100644 --- a/.github/workflows/build_dataops.yml +++ b/.github/workflows/build_dataops.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - platform: [jupyterhub-base, snowflake] + platform: [jupyterhub-base, bigquery-postgres, snowflake] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/release_dataops.yml b/.github/workflows/release_dataops.yml index e1b1cbc..ca86e99 100644 --- a/.github/workflows/release_dataops.yml +++ b/.github/workflows/release_dataops.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - platform: [jupyterhub-base, snowflake] + platform: [jupyterhub-base, bigquery-postgres, snowflake] steps: - name: Checkout uses: actions/checkout@v2 diff --git a/jupyterlab-dataops/Dockerfile b/jupyterlab-dataops/Dockerfile index 86f5822..cf48843 100644 --- a/jupyterlab-dataops/Dockerfile +++ b/jupyterlab-dataops/Dockerfile @@ -73,6 +73,34 @@ RUN pip install --no-cache-dir \ jupyterlab-git +FROM jupyterhub-base as bigquery-postgres +USER root +RUN apt-get update \ + && apt-get install -yq --no-install-recommends \ + apt-transport-https \ + ca-certificates \ + gnupg \ + sudo + +RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list +RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - + +RUN apt-get update \ + && apt-get install -yq --no-install-recommends \ + google-cloud-cli \ + libpq-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +USER jovyan +# install python packages +RUN pip install --no-cache-dir \ + 'google-cloud-bigquery[bqstorage,pandas]' \ + ipywidgets \ + psycopg2 \ + ipython-sql + + FROM jupyterhub-base as snowflake USER jovyan RUN pip install --no-cache-dir \