Connects to the EC NMB2B service, requests flightsByAerodrome and saves the result to a postgres db.
177
This container connects to the EC NMB2B service, requests flightsByAerodrome and saves the result to a postgres db. Configuration is done via a .env file (as seen below). A client certificate and passphrase for the use of NMB2B are required to run this container.
Use the latest version of wudti/b2b-client-frq (DockerHub).
Create a postgres database (flightsByAerodrome) and pgadmin instances via docker-compose.
Get IP of postgres container via:
$ docker inspect <db container> | grep IPAddress
$ docker volume create cert
$ docker volume inspect cert
B2B_FLAVOUR=PREOPS
B2B_CERT_FORMAT=pfx
B2B_CERT=/cert/CC**************_openssl.p12
B2B_CERT_PASSPHRASE=************
B2B_AERODROME=LSZH
B2B_TIMEWINDOW=2
B2B_AERODROME_ROLE=BOTH
PGUSER=postgres
PGHOST=172.xxx.xxx.xxx
PGPASSWORD=postgres
PGDATABASE=flightsByAerodrome
PGPORT=5432
$ docker run --mount source=cert,destination=/cert --net=host --env-file=../.env wudti/b2b-client-frq:0.3
--net=host --> So that container can reach the DB.
--env-file --> Paht to env file.
Content type
Image
Digest
Size
64.8 MB
Last updated
over 4 years ago
docker pull wudti/b2b-client-frq:0.3