Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
proxy_pass   http://IMS_ALIAS;

 

3) In the postgres/Dockerfile, replace the line

Code Block
languagebash
RUN    /etc/init.d/postgresql start &&\
    psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
    createdb --encoding='utf-8' --template=template0 -O docker docker &&\
    psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='docker'" &&\
    /etc/init.d/postgresql stop

by

Code Block
languagebash
RUN    /etc/init.d/postgresql start &&\
    psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
    createdb --encoding='utf-8' --template=template0 -O docker docker &&\
    psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='docker'" &&\
    createdb --encoding='utf-8' --template=template0 -O docker cytominetest &&\
    psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='cytominetest'" &&\
    /etc/init.d/postgresql stop

 

4) In the postgis/Dockerfile, replace the lines

Code Block
languagebash
FROM cytomine/postgres
 
# and
 
RUN    /etc/init.d/postgresql start &&\
	psql -d docker -f /usr/share/postgresql/9.3/extension/postgis--2.1.5.sql  &&\
	psql -d docker -c "GRANT ALL ON geometry_columns TO PUBLIC;"  &&\
	psql -d docker -c "GRANT ALL ON geography_columns TO PUBLIC;"  &&\
	psql -d docker -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"

by

Code Block
languagebash
FROM cytomine/postgresdev
 
# and

RUN    /etc/init.d/postgresql start &&\
	psql -d docker -f /usr/share/postgresql/9.3/extension/postgis--2.1.5.sql  &&\
	psql -d docker -c "GRANT ALL ON geometry_columns TO PUBLIC;"  &&\
	psql -d docker -c "GRANT ALL ON geography_columns TO PUBLIC;"  &&\
 	psql -d docker -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"  &&\
 	psql -d cytominetest -f /usr/share/postgresql/9.3/extension/postgis--2.1.5.sql  &&\
 	psql -d cytominetest -c "GRANT ALL ON geometry_columns TO PUBLIC;"  &&\
 	psql -d cytominetest -c "GRANT ALL ON geography_columns TO PUBLIC;"  &&\
 	psql -d cytominetest -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"

 

5) In the restart_keep_data.sh, replace the lines

...

by

Code Block
languagebash
cd postgres && docker build -t="cytomine/postgresdev" .
cd ../postgis && docker build -t="cytomine/postgisdev" .
cd ../nginx && docker build -t="cytomine/nginxdev" .
cd ..
 
# and
 
sh start_dev.sh

...