Sign inSign up

nhsdev/nia-gpc-consumer-adaptor

By nhsdev

•Updated 24 days ago

The GPC Consumer adaptor proxies requests to GP Connect provider endpoints.

Image
0

10K+

nhsdev/nia-gpc-consumer-adaptor repository overview

⁠Quick reference

⁠What is the GPC Consumer?

The GPC Consumer adaptor proxies requests to GP Connect provider endpoints. The adaptor simplifies your GP Connect integration by performing service discovery via Spine Directory Service and routing over Spine Security Proxy. We only support the interactions required for GP2GP over GP Connect and the GP2GP Adaptor⁠.

⁠How to use this image

To help you begin using the GPC Consumer we provide shell scripts and Docker Compose configurations.

⁠Clone the repository

git clone https://github.com/nhsconnect/integration-adaptor-gpc-consumer.git

⁠Pull the latest changes and checkout the release tag

Every tagged container on Docker hub has a corresponding tag in the git repository. Checkout the tag of the release you are testing to ensure compatibility with configurations and scripts.

git pull
git checkout 0.2.8

⁠Find the docker directory

cd integration-adaptor-gpc-consumer/docker

⁠Configure the application

The repository includes several configuration examples:

  • vars.local.sh template to run the adaptor against mock service containers
  • vars.opentest.sh template to run the adaptor against the OpenTest environment

Configure the application by copying a vars.*.sh file to vars.sh

cp vars.local.sh vars.sh

Make any required changes to the vars.sh file. If using vars.local.sh you do not need to modify anything. Refer to the README⁠ for possible configuration options.

⁠Find the release directory

cd ../release

⁠Start the adaptor

The script pulls the released GPC Consumer adaptor container image from Docker Hub. It builds containers for its dependencies from the Dockerfiles in the repository.

./run.sh

⁠Monitor the logs

./logs.sh

⁠Run the tests

We provide shell scripts in the release/tests directory to help you start testing.

  • healthcheck.sh verifies that the adaptor's healthcheck endpoint is available
cd tests/
./healthcheck.sh

⁠Stopping the adaptor

cd ../docker
docker-compose down

Tag summary

Content type

Image

Digest

sha256:860aa3a6c…

Size

163.4 MB

Last updated

24 days ago

docker pull nhsdev/nia-gpc-consumer-adaptor:1.2.2