Scripts for running 52 North's Sensor Observation Service as a docker container.
LICENSE
- License file.README.md
- This file.run.sh
- Bash script.
- Internet access.
- Docker.
- Docker container for tomcat.
- 52 North's implementation of OGC Sensor Observation Service.
- Clone the project and then go to the docker_scidb folder:
git clone https://github.com/albhasan/docker_sos52n.git
- Enable
setup.sh
for executionchmod +x setup.sh
- Run
setup.sh
. This script creates two Docker containers: One with Tomcat and the other with PostGRESQL-PostGIS. - Take control of the DB container
docker exec -it -u postgres some-postgis /bin/bash
- Create a SQL script in order to create a PostGIS database
echo 'CREATE DATABASE sos WITH OWNER = postgres ENCODING = UTF8 TEMPLATE = template_postgis;' >> /tmp/sosdb.sql
- Run the SQL script
psql -f /tmp/sosdb.sql
- Get out of the DB container
exit
- Finally, the SOS server is available the though the host at
http://localhost:8085/52n-sos-webapp/
. Go there and follow the SOS's configuration tutorial. You will need the following information:- The database name is
sos
(see the SQL script). - The POSTGRES host IP is diplayed by running
docker run -it --link some-postgis:postgres --rm postgres sh -c 'exec echo "$POSTGRES_PORT_5432_TCP_ADDR"'
- The POSTGRES host port is diplayed by running
docker run -it --link some-postgis:postgres --rm postgres sh -c 'exec echo "$POSTGRES_PORT_5432_TCP_PORT"'
- The postgres user password is
postgres
- The database name is