Use Postgres 9.6 for Jenkins builds (#3729)
This commit is contained in:
parent
f94cc64982
commit
ff854b3955
@ -11,15 +11,15 @@ RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
|
||||
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
||||
|
||||
RUN apt-get update && apt-get install -y -qq postgresql-11 redis-server unzip libuv1-dev libjson-c-dev nettle-dev nodejs
|
||||
RUN apt-get update && apt-get install -y -qq postgresql-9.6 redis-server unzip libuv1-dev libjson-c-dev nettle-dev nodejs
|
||||
|
||||
RUN rm /etc/postgresql/11/main/pg_hba.conf; \
|
||||
echo 'local all all trust' >> /etc/postgresql/11/main/pg_hba.conf; \
|
||||
echo 'host all all 127.0.0.1/8 trust' >> /etc/postgresql/11/main/pg_hba.conf; \
|
||||
echo 'host all all ::1/128 trust' >> /etc/postgresql/11/main/pg_hba.conf; \
|
||||
echo 'host all all ::0/0 trust' >> /etc/postgresql/11/main/pg_hba.conf;
|
||||
RUN rm /etc/postgresql/9.6/main/pg_hba.conf; \
|
||||
echo 'local all all trust' >> /etc/postgresql/9.6/main/pg_hba.conf; \
|
||||
echo 'host all all 127.0.0.1/8 trust' >> /etc/postgresql/9.6/main/pg_hba.conf; \
|
||||
echo 'host all all ::1/128 trust' >> /etc/postgresql/9.6/main/pg_hba.conf; \
|
||||
echo 'host all all ::0/0 trust' >> /etc/postgresql/9.6/main/pg_hba.conf;
|
||||
|
||||
RUN echo 'max_connections = 1000' >> /etc/postgresql/11/main/conf.d/connectionlimits.conf
|
||||
RUN echo 'max_connections = 1000' >> /etc/postgresql/9.6/main/conf.d/connectionlimits.conf
|
||||
|
||||
# Tooling
|
||||
|
||||
|
@ -57,7 +57,7 @@ services:
|
||||
redis:
|
||||
image: redis
|
||||
postgres:
|
||||
image: postgres:11.1
|
||||
image: postgres:9.6
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_USER=postgres
|
||||
|
Loading…
Reference in New Issue
Block a user