Skip to content

Commit

Permalink
Adding bigquery-postgres image (#59)
Browse files Browse the repository at this point in the history
* Adding bigquery-postgres image

* Adding release with new image

* Adding release with new image cntd.

---------

Co-authored-by: Michal Rudko <[email protected]>
  • Loading branch information
michalrudko and Michal Rudko authored Sep 21, 2023
1 parent 6fe4d33 commit 3f21be5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_dataops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_dataops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 28 additions & 0 deletions jupyterlab-dataops/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3f21be5

Please sign in to comment.