GithubHelp home page GithubHelp logo

docker_sos52n's Introduction

52 North Sensor Observation Service running as a docker container

Scripts for running 52 North's Sensor Observation Service as a docker container.

Files:

  • LICENSE - License file.
  • README.md - This file.
  • run.sh - Bash script.

Prerequisites:

Dependencies:

Instructions:

  1. Clone the project and then go to the docker_scidb folder: git clone https://github.com/albhasan/docker_sos52n.git
  2. Enable setup.sh for execution chmod +x setup.sh
  3. Run setup.sh. This script creates two Docker containers: One with Tomcat and the other with PostGRESQL-PostGIS.
  4. Take control of the DB container docker exec -it -u postgres some-postgis /bin/bash
  5. 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
  6. Run the SQL script psql -f /tmp/sosdb.sql
  7. Get out of the DB container exit
  8. 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

docker_sos52n's People

Contributors

albhasan avatar

Watchers

 avatar  avatar

docker_sos52n's Issues

PostGIS missing

Add a Postgis container and like it to Tomcat foe setting up 52N SOS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.