Skip to content

Commit

Permalink
Install sqlean via sqlpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviomartins committed Mar 15, 2024
1 parent 9d3dc61 commit 53e62c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
1 change: 1 addition & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ignored:
- DL3008
- DL3013
- DL3016
- DL4001
39 changes: 24 additions & 15 deletions notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,41 @@ RUN apt-get update --yes && \

USER ${NB_UID}

# Install sqlite
# Install pgcli
RUN mamba install --yes \
'sqlite' && \
'pgcli' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Install redis
# Install PostgreSQL Python drivers v3
RUN mamba install --yes \
'redis-server==7.*' \
'redis-py' && \
'psycopg' \
'psycopg-c' \
'psycopg-pool' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Install PostgreSQL Python drivers v3
# Install sqlite
RUN mamba install --yes \
'psycopg' \
'psycopg-c' \
'psycopg-pool' && \
'sqlite' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Install sqlpkg
RUN curl -sS https://webi.sh/sqlpkg | sh && \
fix-permissions "/home/${NB_USER}"

# Install sqlean
RUN "/home/${NB_USER}/.local/bin/sqlpkg" install nalgeon/sqlean && \
fix-permissions "/home/${NB_USER}"

# Install redis
RUN mamba install --yes \
'redis-server==7.*' \
'redis-py' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
Expand Down Expand Up @@ -84,12 +99,6 @@ RUN mamba install --yes \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Install pgcli
RUN mamba install --yes \
'pgcli' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

USER ${NB_UID}

Expand Down

0 comments on commit 53e62c4

Please sign in to comment.