Utilisation en ligne de commande#

Une fois l’outil installé, il est appelable en ligne de commande : gpf-pub-agent-road2.

Fonctionnement général#

L’agent de publication Road2 (gpf-pub-agent-road2) permet la publication de configuration de l’API Entrepôt sur un service Road2.

Commandes et options#

Agent de publication Road2 1.11.0 - L’agent de publication Road2 (gpf-pub-agent-road2) permet la publication de configuration de l’API Entrepôt sur un service Road2

gpf-pub-agent-road2 [-h] [-v] [--version] [-w GPF_WORK_DIR]
                    [--endpoint-name GPF_ENDPOINT_NAME] [--pod-id GEOSERVICE_POD_NAME]
                    [--url-entrepot GPF_WAREHOUSE_URL] [--exchange-name EXCHANGE_NAME]
                    [--publication-result-topic PUBLICATION_RESULT_TOPIC]
                    [--rabbit-host RABBIT_HOST] [--rabbit-port RABBIT_PORT]
                    [--keycloack-user-id KEYCLOACK_USER_ID] [--user-agent USER_AGENT]
                    [--rabbit-login RABBIT_USERNAME] [--rabbit-password RABBIT_PASSWORD]
                    [--gs-url-health GEOSERVICE_URL_HEALTHCHECK]
                    [--pg-user GPF_DATABASE_STORAGE_USER]
                    [--pg-pass GPF_DATABASE_STORAGE_PWD]
                    [--road2-graph-data-dir ROAD2-GRAPH-DATA-DIR]
                    [--road2-service-dir ROAD2-SERVICE-DIR] [--s3-url GPF_S3_URL]
                    [--s3-key GPF_S3_KEY] [--s3-secret-key GPF_S3_SECRETKEY]
                    [--s3-region GPF_S3_REGION] [--health-file GPF_HEALTH_FILE]
                    [--gs-url GEOSERVICE_URL] [--road2-db-pool-size ROAD2_DB_POOL_SIZE]
                    [--consistency-checking-timer CONSISTENCY_CHECKING_TIMER]
                    [--consistency-checking-enabled CONSISTENCY_CHECKING_ENABLED]
                    [--mattermost-webhook-scheme MATTERMOST_WEBHOOK_SCHEME]
                    [--mattermost-webhook-host MATTERMOST_WEBHOOK_HOST]
                    [--mattermost-webhook-port MATTERMOST_WEBHOOK_PORT]
                    [--mattermost-webhook-token MATTERMOST_WEBHOOK_TOKEN]
                    [--mattermost-request-timeout MATTERMOST_REQUEST_TIMEOUT]

gpf-pub-agent-road2 options#


Variables d’environnement#

Génériques#

Nom de la variable

Argument CLI correspondant

Valeur par défaut

GPF_WORK_DIR

--work-dir-path

Spécifiques#

Nom de la variable

Argument CLI correspondant

Valeur par défaut

GPF_DATABASE_STORAGE_USER

--pg-user

postgres

GPF_DATABASE_STORAGE_PWD

--pg-pass

postgres

GEOSERVICE_URL

--geoservice-url

http://localhost:8600/geoserver

GEOSERVER_USER

--geoservice-user

admin

GEOSERVER_PASS

--geoservice-pass

geoserver

GPF_ENDPOINT_NAME

--endpoint-name

endpoint

GEOSERVICE_POD_NAME

--pod-id

pod_id

GPF_WAREHOUSE_URL

--url-entrepot

EXCHANGE_NAME

--exchange-name

publication-{GPF_ENDPOINT_NAME}

PUBLICATION_RESULT_TOPIC

--publication-result-topic

publication-endpoint-update

RABBIT_HOST

--rabbit-host

localhost

RABBIT_PORT

--rabbit-port

5672

RABBIT_USERNAME

--rabbbit-login

RABBIT_PASSWORD

--rabbit-password

KEYCLOACK_USER_ID

--keycloack-user-id

GPF_S3_URL

--s3-url

``

GPF_S3_KEY

--s3-key

admin

GPF_S3_SECRETKEY

--s3-secret-key

minioadmin

GPF_S3_REGION

--s3-region

eu-west-3

ROAD2-GRAPH-DATA-DIR

--road2-graph-data-dir

/graph_data

ROAD2-SERVICE-DIR

--road2-service-dir

/service_dir

GPF_HEALTH_FILE

--health-file

``

ROAD2_DB_POOL_SIZE

--road2-db-pool-size

``

GEOSERVICE_URL_HEALTHCHECK

--geoservice-url-healthcheck

http://localhost:8079/admin/1.0.0/health