Below are the advisable steps to setup a local MAC OS machine to run the revalidation back end services. Steps could be different if you are using a different operating system.
Request aws account from devops team and ensure you are provided with the following;
account id
user name
password
Access key ID
Secret access key
region name
login to aws command [should look something like
aws ecr get-login-password | docker login --username AWS --password-stdin xxxxxx.xxxxx.xxxxx
]
Prequisite things required to install
brew install maven brew install docker brew install docker-machine brew install docker-compose brew install awscli brew cask install adoptopenjdk/openjdk/adoptopenjdk8 brew cask install java11
configure aws profile -
aws configure
using the info from step 1. [Related article https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html]login to aws - [obtain this from devops as per step 1]
create default virtual machine -
docker-machine create default --driver virtualbox
set default docker machine -
eval $(docker-machine env default)
clone down
<https://github.com/Health-Education-England/REVALIDATION-COMBINE
> git reponavigate to the
REVALIDATION-COMBINE
repo via terminal and then rundocker-compose up
. This command could take a few mins to reun whilst the images are automatically pulled down and the be service/s get up and runningDepending on which service you need to access from the host machine first you would need to get the corresponding ip address. e.g
docker-machine inspect default | grep "IPAddress"
Populate local db by invoking this POST api
<http://<IPAddress>:9000/gmcclient/api/v1/admin
> in postman withBasic Auth
and with following info
username: admin password: admin
browse the service on the host machine [fill in acquired IPAddress]. e.g view the revalidation api
<http://<IPAddress>:8080/revalidation/api/v1/doctors
>
…
Add Comment