Skip to content

Latest commit

 

History

History
82 lines (60 loc) · 1.48 KB

Readme.adoc

File metadata and controls

82 lines (60 loc) · 1.48 KB

setup test environment for postprocess

1. overview

This document describes how to setup a test environment for the postprocessing operations implemented in the seeSea project.

2. clone the sources

via https

git clone https://github.com/OpenSeaMap/seesea-deployment.git
cd seesea-deployment

via ssh

git clone [email protected]:OpenSeaMap/seesea-deployment.git
cd seesea-deployment

3. create file .env

create a file with name .env and insert following variables:

POSTGRES_USER=admin
POSTGRES_PASSWORD=admin
POSTGRES_HOST=postgis
POSTGRES_PORT=5432
[email protected]
PGADMIN_DEFAULT_PASSWORD=alkufdh7

Note: do not commit that file into github repository.

4. prepare build directory

./script/prepare_volumes.sh

5. start docker container

docker compose up -d --build

6. join docker container

docker compose exec postprocess bash

6.1. build and deploy the seeSea postprocessing application

cd /seesea
git checkout remotes/origin/stevo-dev ./volumes/postprocess/seesea
mvn -f net.sf.seesea.aggregator/pom.xml -Dmaven.repo.local=/.repository -X clean install

# deploy to directory /app/postprocess
10_scripts/deploy_app.sh

6.2. Setup Databases

The following command - creates the databases osmapi and depth - apply the database schema for osmapi and depth - create database user osm and osmapi

10_scripts/resetdb.sh

6.3. start processing

10_scripts/runpostprocessing.sh