Unverified Commit 1c75231d authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3447 from morozov/postgress-11

Replaced custom docker image for PostgreSQL with the official one
parents 7f79d049 0a165b46
FROM debian:experimental-20180426
RUN apt-get update && \
apt-get install -y -t experimental --no-install-recommends \
postgresql-11 \
postgresql-client-11 \
&& \
rm -rf /var/lib/apt/lists/*
RUN echo "host all all all trust" >> /etc/postgresql/11/main/pg_hba.conf
RUN echo "listen_addresses='*'" >> /etc/postgresql/11/main/conf.d/listen.conf
EXPOSE 5432
CMD ["sleep", "inf"]
......@@ -6,9 +6,7 @@ echo "Preparing Postgres 11"
sudo service postgresql stop || true
sudo docker build -t postgres11 - < tests/travis/Dockerfile-postgres11
sudo docker run -d --name postgres11 -p 5432:5432 postgres11
sudo docker exec postgres11 service postgresql start
sudo docker exec -i postgres11 su -c psql postgres <<<"create database doctrine_tests"
sudo docker run -d --name postgres11 -p 5432:5432 postgres:11.1
sudo docker exec -i postgres11 bash <<< 'until pg_isready -U postgres > /dev/null 2>&1 ; do sleep 1; done'
echo "Postgres 11 ready"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment