Skip to content

Commit

Permalink
Bumping packages versions (#58)
Browse files Browse the repository at this point in the history
* Bumping packages versions

* Removing Cloud Beaver

* Bump VS Code version

* Removing remaining CB config

* Simplifying jh image

* Remove gcp image from build

* Fix Dockerfile

* Fix image name

* Remove jupyterlab-lsp

* Updating README

---------

Co-authored-by: Michal Rudko <[email protected]>
  • Loading branch information
michalrudko and Michal Rudko authored Aug 25, 2023
1 parent 4431151 commit 6fe4d33
Show file tree
Hide file tree
Showing 16 changed files with 40 additions and 274 deletions.
Binary file added .DS_Store
Binary file not shown.
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: [gcp, jupyterhub]
platform: [jupyterhub-base, 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: [gcp, jupyterhub]
platform: [jupyterhub-base, snowflake]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Jupyter Images

This repository stores receipes of publicly-available Jupyter images
This repository stores recipes of publicly-available Jupyter images

Latest versions:

Expand Down Expand Up @@ -38,21 +38,22 @@ Compatibility:

## jupyterlab-dataops

Based on the [jupyter/base-notebook](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html#jupyter-base-notebook)
Based on the [jupyter/minimal-notebook:python-3.11.4](https://hub.docker.com/layers/jupyter/minimal-notebook/python-3.11.4/images/sha256-1924d8d0adf9cf3646bf7fa3833a30e47d2b0a17a2b583556b37f015f208f115?context=explore)
image with additional setup:

* conda-backed python 3.8.8 environment
* [jupyterlab-git](https://github.com/jupyterlab/jupyterlab-git) extension
* [jupyter-server-proxy](https://jupyter-server-proxy.readthedocs.io) extension
* local [code-server](https://github.com/coder/code-server) as IDE accessed from the browser with
[dbt Power User](https://marketplace.visualstudio.com/items?itemName=innoverio.vscode-dbt-power-user) extension pre-installed
* local [CloudBeaver](https://github.com/dbeaver/cloudbeaver) as SQL editor accessed from the browser
* [dbt](https://docs.getdbt.com/) CLI
- **jupyterhub-base** image
- [jupyterlab-git](https://github.com/jupyterlab/jupyterlab-git) extension
- **snowflake** image
- [jupyterlab-git](https://github.com/jupyterlab/jupyterlab-git) extension
- [jupyter-server-proxy](https://jupyter-server-proxy.readthedocs.io) extension
- local [code-server](https://github.com/coder/code-server) as IDE accessed from the browser with
- [dbt Power User](https://marketplace.visualstudio.com/items?itemName=innoverio.vscode-dbt-power-user) extension pre-installed
- [data-pipelines-cli](https://github.com/getindata/data-pipelines-cli)
- [Snow SQL plugin](https://docs.snowflake.com/en/user-guide/snowsql)

Compatibility:

- [x] [JupyterHub](https://jupyter.org/hub)
- [x] [Vertex AI Notebooks](https://cloud.google.com/vertex-ai/docs/general/notebooks)

## jupyterlab-streaming

Expand Down
44 changes: 22 additions & 22 deletions jupyterlab-dataops/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG VSCODE_VERSION=4.9.1
ARG VSCODE_PYTHON=2023.9.11251005
ARG VSCODE_DBT_POWER_USER=0.6.2
ARG VSCODE_VERSION=4.14.1
ARG VSCODE_PYTHON=2023.10.1
ARG VSCODE_DBT_POWER_USER=0.13.0
ARG VSCODE_DBT=1.4
ARG DP_CLI_VERSION=0.24.2
ARG DP_CLI_VERSION=0.26.0

FROM gcr.io/deeplearning-platform-release/base-cpu.py310:m108 as base

Expand All @@ -28,10 +28,6 @@ RUN code-server --install-extension ms-python.python${VSCODE_PYTHON} \
COPY resources/vsc/settings.json /root/.local/share/code-server/Machine/
COPY resources/vsc/.bashrc root/

# cloudbeaver
COPY --from=gcr.io/getindata-images-public/cloudbeaver-dataops:0.1.0 /opt/cloudbeaver/ /opt/cloudbeaver/
COPY resources/cloudbeaver/conf /opt/cloudbeaver/conf

# requirements
COPY requirements/requirements.txt /opt/requirements/
RUN pip install -r /opt/requirements/requirements.txt
Expand All @@ -48,14 +44,10 @@ EXPOSE 8080
FROM base as gcp
COPY requirements/requirements-bigquery.txt /opt/requirements/
RUN pip install -r /opt/requirements/requirements-bigquery.txt
ADD resources/cloudbeaver/conf/initial-data-sources-bigquery.conf.j2 /opt/cloudbeaver/conf/initial-data-sources.conf.j2
COPY resources/cloudbeaver/set_metadata.py /opt/cloudbeaver/set_metadata.py
COPY resources/cloudbeaver/set_metadata_run_jupyter.sh /set_metadata_run_jupyter.sh
RUN chmod +x /set_metadata_run_jupyter.sh
CMD ["/set_metadata_run_jupyter.sh"]
# NOTE: gcp image is currently not built due to discontinued support for custom images in Vertex AI

# Jupyterhub version
FROM jupyter/minimal-notebook:python-3.9.13 as jupyterhub
FROM jupyter/minimal-notebook:python-3.11.4 as jupyterhub-base

ARG VSCODE_VERSION
ARG DP_CLI_VERSION
Expand All @@ -73,6 +65,22 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN chown -R jovyan:users $HOME
USER jovyan
# install python packages
RUN pip install --no-cache-dir \
jupyterlab==$(conda list -f jupyterlab --json | grep -oP '(?<=\"version\": \")[^\"]*') \
jupyterlab-git


FROM jupyterhub-base as snowflake
USER jovyan
RUN pip install --no-cache-dir \
jupyter-server-proxy \
data-pipelines-cli[docker,datahub,s3,snowflake]==${DP_CLI_VERSION} \
sqlfluff==2.3.0

USER root
# Copies your code file repository to the filesystem
COPY resources/snowsql/entrypoint.sh /entrypoint.sh
# change permission to execute the script and
Expand All @@ -91,14 +99,6 @@ RUN SNOWSQL_DEST=/var/tmp/bin SNOWSQL_LOGIN_SHELL=/etc/bash.bashrc bash /usr/bin

RUN chown -R jovyan:users $HOME
USER jovyan
# install python packages
RUN pip install --no-cache-dir \
jupyterlab==$(conda list -f jupyterlab --json | grep -oP '(?<=\"version\": \")[^\"]*') \
jupyterlab-git \
jupyterlab-lsp \
jupyter-server-proxy \
data-pipelines-cli[docker,datahub,s3,snowflake]==${DP_CLI_VERSION} \
sqlfluff==1.4.5

# install code server and addons
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version ${VSCODE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions jupyterlab-dataops/requirements/requirements-bigquery.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-cloud-bigquery[bqstorage,pandas]==2.32.0
google-cloud-compute==1.5.1
google-cloud-bigquery[bqstorage,pandas]==3.11.3
google-cloud-compute==1.11.0
6 changes: 3 additions & 3 deletions jupyterlab-dataops/requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data-pipelines-cli[docker,datahub,gcs,s3,looker,bigquery]==0.24.2
jupyterlab-git==0.37.1
jupyter-server-proxy==3.2.1
data-pipelines-cli[docker,datahub,gcs,s3,looker,bigquery,dbt-all]==0.25.2
jupyterlab-git==0.41.0
jupyter-server-proxy==4.0.0

This file was deleted.

65 changes: 0 additions & 65 deletions jupyterlab-dataops/resources/cloudbeaver/conf/cloudbeaver.conf

This file was deleted.

This file was deleted.

This file was deleted.

37 changes: 0 additions & 37 deletions jupyterlab-dataops/resources/cloudbeaver/conf/product.conf

This file was deleted.

63 changes: 0 additions & 63 deletions jupyterlab-dataops/resources/cloudbeaver/set_metadata.py

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6fe4d33

Please sign in to comment.