Skip to content

Commit 9519ffc

Browse files
authored
Use Ubuntu 22.04 LTS and PostgreSQL 14 (#101)
1 parent cfaa90d commit 9519ffc

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

pgml-admin/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22
MAINTAINER docker@postgresml.com
33

4-
RUN apt-get dist-upgrade
54
RUN apt-get update
65
ARG DEBIAN_FRONTEND=noninteractive
76
ENV TZ=Etc/UTC
8-
RUN apt-get install -y python3 python3-pip libpq-dev curl postgresql-client-12 tzdata
7+
RUN apt-get install -y python3 python3-pip libpq-dev curl postgresql-client-14 tzdata
98

109
COPY requirements.txt /app/requirements.txt
1110
WORKDIR /app

pgml-extension/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22
MAINTAINER docker@postgresml.com
33

4-
RUN apt-get dist-upgrade
54
RUN apt-get update
65
ARG DEBIAN_FRONTEND=noninteractive
76
ENV TZ=Etc/UTC
8-
RUN apt-get install -y postgresql-plpython3-12 python3 python3-pip postgresql-12 tzdata sudo
7+
RUN apt-get install -y postgresql-plpython3-14 python3 python3-pip postgresql-14 tzdata sudo
98

109
# Cache this, quicker
1110
RUN pip3 install xgboost sklearn
@@ -18,8 +17,8 @@ RUN pip3 install .
1817

1918
# Listen on 0.0.0.0 and allow 'root' to connect without a password.
2019
# Please modify for production deployments accordingly.
21-
RUN cp /app/docker/postgresql.conf /etc/postgresql/12/main/postgresql.conf
22-
RUN cp /app/docker/pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
20+
RUN cp /app/docker/postgresql.conf /etc/postgresql/14/main/postgresql.conf
21+
RUN cp /app/docker/pg_hba.conf /etc/postgresql/14/main/pg_hba.conf
2322

2423
WORKDIR /app
2524
ENTRYPOINT ["/bin/bash", "/app/docker/entrypoint.sh"]

pgml-extension/docker/postgresql.conf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
# The default values of these variables are driven from the -D command-line
4040
# option or PGDATA environment variable, represented here as ConfigDir.
4141

42-
data_directory = '/var/lib/postgresql/12/main' # use data in another directory
42+
data_directory = '/var/lib/postgresql/14/main' # use data in another directory
4343
# (change requires restart)
44-
hba_file = '/etc/postgresql/12/main/pg_hba.conf' # host-based authentication file
44+
hba_file = '/etc/postgresql/14/main/pg_hba.conf' # host-based authentication file
4545
# (change requires restart)
46-
ident_file = '/etc/postgresql/12/main/pg_ident.conf' # ident configuration file
46+
ident_file = '/etc/postgresql/14/main/pg_ident.conf' # ident configuration file
4747
# (change requires restart)
4848

4949
# If external_pid_file is not explicitly set, no extra PID file is written.
50-
external_pid_file = '/var/run/postgresql/12-main.pid' # write an extra PID file
50+
external_pid_file = '/var/run/postgresql/14-main.pid' # write an extra PID file
5151
# (change requires restart)
5252

5353

@@ -543,7 +543,7 @@ log_timezone = 'Etc/UTC'
543543
# PROCESS TITLE
544544
#------------------------------------------------------------------------------
545545

546-
cluster_name = '12/main' # added to process titles if nonempty
546+
cluster_name = '14/main' # added to process titles if nonempty
547547
# (change requires restart)
548548
#update_process_title = on
549549

@@ -559,7 +559,7 @@ cluster_name = '12/main' # added to process titles if non
559559
#track_io_timing = off
560560
#track_functions = none # none, pl, all
561561
#track_activity_query_size = 1024 # (change requires restart)
562-
stats_temp_directory = '/var/run/postgresql/12-main.pg_stat_tmp'
562+
stats_temp_directory = '/var/run/postgresql/14-main.pg_stat_tmp'
563563

564564

565565
# - Monitoring -

0 commit comments

Comments
 (0)