Commit 3c62ae25 authored by Guillaume Mella's avatar Guillaume Mella

enable pgsphere extension on V11

parent 50202b1e
Pipeline #30960 passed with stage
in 1 minute and 35 seconds
FROM postgres:12
FROM postgres:11
# https://hub.docker.com/_/postgres
# start from V12 since debian version uses buster and provides pgsphere in the distribution
# start from V11 since debian provides pgsphere in the distribution
RUN apt-get update && apt-get install -y postgresql-pgsphere curl
ENV POSTGRES_USER oidb
ENV POSTGRES_DB oidb
RUN echo "CREATE EXTENSION pg_sphere;" >> /docker-entrypoint-initdb.d/oidb-init-merged.sql
ENV SQL_FILES oidb.sql tap_schema.sql oidb_tap_schema.sql oidb_datalink.sql oidb_datalink_tap_schema.sql
RUN for s in $SQL_FILES ; do curl https://svn.jmmc.fr/jmmc-web/trunk/exist/oidb/conf/$s >> /docker-entrypoint-initdb.d/oidb-init-merged.sql ; done
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