use postgres 11 for tests (#1809)

This commit is contained in:
Egon Elbre 2019-04-23 15:28:30 +03:00 committed by GitHub
parent 13ea5f928b
commit 65723afa9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,16 @@
FROM golang:1.12
RUN apt-get update;
RUN apt-get install -y -qq postgresql-9.6 unzip;
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
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 apt-get update
RUN apt-get install -y -qq postgresql-11 unzip
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;
COPY ./scripts/install-awscli.sh /tmp/install-awscli.sh
RUN bash /tmp/install-awscli.sh