use postgres 11 for tests (#1809)
This commit is contained in:
parent
13ea5f928b
commit
65723afa9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user