diff --git a/docker/Dockerfile b/docker/Dockerfile index 15710e3..1f5a167 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -50,16 +50,16 @@ RUN ["/home/maybms/src/docker/createDB.sh","maybms"] ######################################## # Build patched version ######################################## -RUN cd /home/maybms/src/postgresql-ctype \ - && ./configure --prefix=/home/maybms/install-patched \ - && make -j16 \ - && make install \ - && cp -r /home/maybms/src/postgresql-ctype/src/include/maybms /home/maybms/install-patched/include/postgresql/server/maybms/ +# RUN cd /home/maybms/src/postgresql-ctype \ +# && ./configure --prefix=/home/maybms/install-patched \ +# && make -j16 \ +# && make install \ +# && cp -r /home/maybms/src/postgresql-ctype/src/include/maybms /home/maybms/install-patched/include/postgresql/server/maybms/ ######################################## # Environment ######################################## ENV PGDATA /home/maybms/datadir -ENV PATH /home/maybms/install-patched/bin:$PATH +ENV PATH /home/maybms/install/bin:$PATH ######################################## # Expose postmaster port ######################################## @@ -75,7 +75,7 @@ RUN ["/home/maybms/src/docker/installPipFuncs.sh","maybms"] ######################################## # Per default start postgres ######################################## -ENTRYPOINT ["/home/maybms/install-patched/bin/postgres"] +ENTRYPOINT ["/home/maybms/install/bin/postgres"] ######################################## # Per default connect to the example cluster ######################################## diff --git a/docker/installPipFuncs.sh b/docker/installPipFuncs.sh index 85a9c5a..e7ca0ac 100755 --- a/docker/installPipFuncs.sh +++ b/docker/installPipFuncs.sh @@ -10,8 +10,8 @@ ${INSTALLBINDIR}/pg_ctl -D ${DATADIR} -w start sleep 10 #################### echo - create testdb -${INSTALLBINDIR}/psql -h localhost -p 5432 -U $PGUSER -d template1 -f /home/maybms/src/pip_plugin/pip.sql -${INSTALLBINDIR}/psql -h localhost -p 5432 -U $PGUSER -d template1 -f /home/maybms/src/pip_plugin/pip.sql +${INSTALLBINDIR}/psql -h localhost -p 5432 -U $PGUSER -d maybms -f /home/maybms/src/pip_plugin/pip-noctype.sql +${INSTALLBINDIR}/psql -h localhost -p 5432 -U $PGUSER -d template1 -f /home/maybms/src/pip_plugin/pip-noctype.sql #################### echo - shutdown server ${INSTALLBINDIR}/pg_ctl -w stop