Commit ef0f33d6 authored by Tulio Ruiz's avatar Tulio Ruiz
Browse files

[ADD] Ci image for testing repositories with postgis extension

parent 90a4b460
DO
$body$
BEGIN
CREATE ROLE odoo LOGIN PASSWORD 'odoo' SUPERUSER;
EXCEPTION WHEN others THEN
RAISE NOTICE 'odoo role exists, not re-creating';
END
$body$
\ No newline at end of file
FROM postgres:9.6
ENV LC_COLLATE "C"
RUN apt-get update \
&& apt-get install -yq postgis postgresql-9.6-postgis-scripts \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/postgresql/
COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./00-create_users.sql /docker-entrypoint-initdb.d/00-create_users.sql
RUN chown postgres:postgres -R /etc/postgresql
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
This diff is collapsed.
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