]> granicus.if.org Git - postgis/commitdiff
Pre-create the "root" PostgreSQL user in the build-test image
authorSandro Santilli <strk@keybit.net>
Thu, 21 Jul 2016 11:26:24 +0000 (11:26 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 21 Jul 2016 11:26:24 +0000 (11:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15006 b70326c6-7e19-0410-871a-916f4a2858ee

docker/build-test/Dockerfile.trisquel

index 3be2e4c7c1cf3eac47dd93476261fafd74d1bcab..23f0d1f3dfbeb6db3079cc4341f635ede53f63d3 100644 (file)
@@ -5,3 +5,4 @@ RUN apt-get update -qq && apt-get install -y \
           xsltproc docbook-xsl docbook-mathml dblatex \
           libproj-dev libgdal-dev libgeos-dev libjson0-dev
 
+RUN service postgresql start && su -l postgres -c "createuser -s `whoami`"