This contain is responsible for creating the delta replication files it may be set up by minute, hour, etc. Those replications files will be uploaded to a repository in AWs of Gooble Storage, depends on what you are using.
In order to run this container, we should pass some environment variables
Postgres envs
POSTGRES_HOST
e.g dbPOSTGRES_DB
e.g openstreetmapPOSTGRES_USER
e.g postgresPOSTGRES_PASSWORD
e.g 1234
The following env variables are according to which cloud provider you are going to use:
CLOUDPROVIDER
, eg.aws
orgcp
In case AWS:
AWS_S3_BUCKET
e.gs3://osm-seed-test
In case GCP:
GCP_STORAGE_BUCKET
e.ggs://osm-seed-test
Replication folder
REPLICATION_FOLDER
. a folder where we are going to save the data e.g/replication/minute
cd replication-job
docker network create osm-seed_default
docker build -t osmseed-replication-job:v1 .
docker run \
--env-file ./../.env \
--network osm-seed_default \
-v $(pwd)/../replication-job-data:/app/data \
-t osmseed-replication-job:v1