Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyter-db-pg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
jupyter-db-pg
Commits
a9795bb2
Commit
a9795bb2
authored
3 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
sets versions.
parent
1860ec90
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-17
5 additions, 17 deletions
Dockerfile
with
5 additions
and
17 deletions
Dockerfile
+
5
−
17
View file @
a9795bb2
...
...
@@ -22,14 +22,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
&&
rm
-rf
/var/cache/apt
# Postgresql python library
RUN
conda
install
--quiet
--yes
psycopg2
&&
\
conda
install
-y
-c
conda-forge postgresql pgspecial
&&
\
conda clean
-tipsy
&&
\
fix-permissions
"
${
CONDA_DIR
}
"
&&
\
fix-permissions
"/home/
${
NB_USER
}
"
# SQL support for ipython and PlantUML
RUN
pip
install
ipython-sql iplantuml
&&
\
RUN
conda
install
--quiet
--yes
psycopg2
=
2.9.1
&&
\
conda
install
-y
-c
conda-forge
postgresql
=
13.3 pgspecial
&&
\
conda clean
-tipsy
&&
\
pip
install
ipython-sql iplantuml mocodo_magic
&&
\
fix-permissions
"
${
CONDA_DIR
}
"
&&
\
fix-permissions
"/home/
${
NB_USER
}
"
...
...
@@ -39,18 +36,9 @@ ENV PGDATA=/home/jovyan/work/pgdata
COPY
initDB.sh /usr/local/bin/before-notebook.d/
RUN
pip
install
jupyterlab_sql
&&
\
jupyter serverextension
enable
jupyterlab_sql
--py
--sys-prefix
&&
\
jupyter lab build
&&
\
fix-permissions
"
${
CONDA_DIR
}
"
&&
\
fix-permissions
"/home/
${
NB_USER
}
"
RUN
pip
install
mocodo_magic
RUN
jupyter lab
--generate-config
&&
\
RUN
ipython profile create
&&
\
sed
-i
-e
'/c.InteractiveShellApp.extensions = / s/= [^\]]*/= ["mocodo_magic","sql"]/'
-e
's/# \(c.InteractiveShellApp.extensions\)/\1/'
~/.ipython/profile_default/ipython_config.py
# Switch back to jovyan to avoid accidental container runs as root
USER
$NB_UID
RUN
mkdir
-p
/home/jovyan/.ssh
&&
ssh-keyscan
-t
rsa github.com
>
/home/jovyan/.ssh/known_hosts
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment