Skip to content

ouseful-template-repos/binder-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binder-postgres

Binder

Demo of launching a binderhub notebook server with a free running Postgres server.

Postgres is installed via Anaconda; the databases is initialised into /srv/conda/pgsql (the /src/conda (and if it exists /srv/npm) path is the only writeable path outside of $HOME).

The init_db/postgres/init.db file is called to set up any required users, databases, etc, and it in turn seeds a test database as defined in init_db/postgres/seed_db.sql. The init_db directory is also copied into /srv/conda so the user can check on the initialisation set-up if required.

Example via @manics on Jupyter dscourse site [gist].

See the other branches for versions that do, albeit at the expense of using a Dockerfile.

See also: https://blog.ouseful.info/2019/02/04/running-a-postgresql-server-in-a-mybinder-container/

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 85.6%
  • Shell 14.4%