# gps.docker ## Getting Started Additional documentation: https://gpsprocessor.atlassian.net/wiki/spaces/SysDev/pages/1876919054/gps.docker ## Setting up docker Double click on the **setup.cmd** file in the gps.docker directory This generates a local https dev certificate and copies your git private key file to the res folder ## Log in to nexus.globalprocessing.net Type the following command to login to the GPS nexus repository using **docker** as the username and **Pv5p9wvtzcbaPjW** as the password ``` docker login nexus.globalprocessing.net ``` If a certificate error occurs (**X509: certificate signed by unknow authority**) Go to settings in the docker UI in **Docker Engine** Put the following in insecure registries: ``` "insecure-registries": ["nexus.globalprocessing.net:443", "nexus.globalprocessing.net"], ``` ## WSL2 If using wsl2 create a file called **.wslconfig** ``` [wsl2] memory=8GB processors=4 ``` # Clearing The following directories need to be created in order for clearing to work: ``` C:\GPS\HighPriorityClearingFiles C:\GPS\LowPriorityClearingFiles C:\GPS.Clearing\GPS.Clearing.Matching.Database C:\GPS.Currency ``` There needs to be a **Rates.db** file in **C:\GPS.Currency** This can be obtained from the Clearing E2E server. Docker images can either be build or pulled from the docker repository ## GPS.Clearing.Testing To run test using docker in the **Test** menu choose **Configure Run Settings** then **Select Solution Wide runnsettings File** and choose the **docker.runsettings** file. ## Pulling the Docker Images In PowerShell (in the directory where you cloned this repository) ``` cd clearing docker-compose pull ``` ## Build the Docker Images In PowerShell (in the directory you cloned this repository) ``` cd clearing docker-compose build ``` ## Services The docker-compose.yml file contains services for the following: Comment out or delete whatever is not required (already installed) ### dockerdb This mount either a dockervm for clearing or an AWS database ### rabbitmq To stop in Administrator Powershell run: ``` net stop rabbitmq ``` ## Running all Clearing services In a cmd shell or PowerShell run the following: ``` docker-compose up -d ``` ## Stopping individual Clearing services ``` docker-compose stop matching ``` ## Running individual Clearing services ``` docker-compose up -d matching ``` ## Stopping all Clearing services ``` docker-compose down ``` # gps.testing.automationframework Use Docker configuration when testing # gps.api.dataaccesslayer.testing The following appsettings should be changed for docker: ``` "AlexisConnectionString": "Server=localhost,1435;Database=AlexisPTSTest;User Id=gpspl;Password=yW2S6KXdY8;", "AlexisReadWriteConnectionString": "Server=localhost,1435;Database=AlexisReadWrite;User Id=gpspl;Password=yW2S6KXdY8;", "Tier2ConnectionString": "Server=localhost,1435;Database=Tier2;User Id=gpspl;Password=yW2S6KXdY8;", ```