Skip to content

Commit c3b47c3

Browse files
authored
allow inputing non-ascii char with psql
1 parent 61e369c commit c3b47c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

9.6/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ RUN mv -v "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample" /usr/share/po
121121

122122
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
123123

124+
# without this, it's not possible to input non-ascii character when launching psql from within the container
125+
ENV LD_PRELOAD=/lib/x86_64-linux-gnu/libreadline.so.6.3
126+
124127
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
125128
ENV PGDATA /var/lib/postgresql/data
126129
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)

0 commit comments

Comments
 (0)