Skip to content

Commit 70a744b

Browse files
authored
Merge pull request #3066 from minrk/postgres-build
compile psycopg2 in hub image
2 parents 88d4bdd + af0a8db commit 70a744b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

images/hub/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ RUN apt-get update \
5555
&& apt-get install -y --no-install-recommends \
5656
# requirement for pycurl
5757
libcurl4 \
58+
# requirement for using postgres database
59+
libpq5 \
5860
# requirement for using a local sqlite database
5961
sqlite3 \
6062
tini \

images/hub/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jupyterhub-kubespawner
2828

2929
## Other optional dependencies for additional features
3030
pymysql # mysql
31-
psycopg2-binary # postgres
31+
psycopg2 # postgres
3232
pycurl # internal http requests handle more load with pycurl
3333
sqlalchemy-cockroachdb # cocroachdb
3434
statsd # statsd metrics collection (TODO: remove soon, since folks use prometheus)

images/hub/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pamela==1.0.0
118118
# via jupyterhub
119119
prometheus-client==0.16.0
120120
# via jupyterhub
121-
psycopg2-binary==2.9.5
121+
psycopg2==2.9.5
122122
# via -r requirements.in
123123
pyasn1==0.4.8
124124
# via ldap3

0 commit comments

Comments
 (0)