psychemedia / jupyter-postgres-demo Goto Github PK
View Code? Open in Web Editor NEWDemo of launching a binderhub notebook server with a free running postgres server
License: Apache License 2.0
Demo of launching a binderhub notebook server with a free running postgres server
License: Apache License 2.0
postgres
likes running under postgres
user or root
.
The dockerfile-omero
rewrites permissions over the /run/postgresql/
directory to allow joyvan
to start postgres explicitly.
The sudoers
branch gives jovyan
elevated sudo
privileges so that it can start the postgres
service.
The master
branch is broken: the postgres server can't be started.
Trying to launch the pgadmin query tool raises the error:
Bad Request
Invalid HTTP Version 'Invalid HTTP Version: 'on testuser@test1?query_url=&server_type=pg HTTP/1.1''
See also this related SO question on pgadmin in docker.
Via Jupyter discouse site [thread], h/t @betatim for debug strategy:
With a bit of editing of pgAdmin4.py to get it to log at DEBUG level to the console and starting it from a console I see that it sends 302 redirect to /browser when you first visit it at ../proxy/5050/. This request then ends up with a 404 because of the leading / in the redirect location.
If instead you navigate to .../proxy/5050/browser/ (with trailing slash) there is no 302 redirect and you get to see a bit of HTML produced by pgAdmin. However the JS doesn’t load because the paths all start with a / that make them absolute.
The missing puzzle piece is how to configure pgAdmin4 (a flask app) to understand that it is being served from a URL prefix. I can’t make that work. It is a general problem that I have with flask apps :-/
I've been working on setting up a postgres+jupyterlab image, and this repo has been the gift that keeps on giving, so thanks for all the hard work @psychemedia and @manics!
I'm looking at some of the archaeology of your efforts to get pgadmin4 running, and I see that at some point you stopped trying to disable SERVER_MODE
. As I'm going through the same contortions right now, I thought I'd ask about it here. Is there a reason you couldn't get SERVER_MODE=False
working? I'd like to avoid an additional user login if at all possible. Also, why did you start serving the application with gunicorn rather than its built-in server?
Any insight would be appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.