Sign inSign up

wudti/b2b-client-frq

By wudti

•Updated over 4 years ago

Connects to the EC NMB2B service, requests flightsByAerodrome and saves the result to a postgres db.

Image
0

177

wudti/b2b-client-frq repository overview

⁠FRQ Network Manager B2B Client for flightsByAerodrome

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.

⁠Deployment

  • 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
  • Create a docker volume (cert) and copy your client cert to the Mountingpoint (docker volume inspect)
$ docker volume create cert
$ docker volume inspect cert 
  • Create a .env file containing the following env vars:
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
  • To run the container use:
$ 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.

Tag summary

Content type

Image

Digest

Size

64.8 MB

Last updated

over 4 years ago

docker pull wudti/b2b-client-frq:0.3