-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
echo "Preparing Postgres 11" | ||
|
||
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" | ||
|
||
echo "Postgres 11 ready" |