This repository contains a script to quickly set up a Colima container for development. The script will install Colim and create a new Colima container. Then it will start up any services that you specify in the arguments.
The format of the command is
./main.sh (ALL_SERVICES_NAME) "KILL_PROCESS_1;KILL_PROCESS_2;KILL_PROCESS_3"
It will accept your all_services_name as the first argument to run HMRC services through sm2 (Service Manager 2).
Then it will check the second argument to determine if there are processes that should be killed.
This script will delete any existing Colima instances.
Once in a while, Colima can be slow in spinning up services or it's not picking any new changes from your web application. You may need to clear out your cache by recreating a Colima container from scratch.
Format of arguments for main.sh script
./main.sh (ALL_SERVICES_NAME) "KILL_PROCESS_1;KILL_PROCESS_2;KILL_PROCESS_3"
ALL_SERVICES_NAME - This is the name of service which would spin up all services. If you need to kill more than 1 process, then separate your processes with a semi colon delimiter ;.
"KILL_PROCESS_1;KILL_PROCESS_2;KILL_PROCESS_3" - (optional) This is the second argument where you want the shell script to kill processes after running the command to run all services. You can add multiple processes to the second argument and separate them with a semi-colon ; and no spaces. Wrap those service names with doubel quotes. The shell script will split the second argument into an array of processes to kill. This is optional.
Those services does not exists. You can run those commands to see what happens. This is the format to run the main.sh script with the arguments.
./main.sh all_services_name "process1;process2;process3"
Pass arguments to the main.sh script for DASS Charities services.
./main.sh DASS_CHARITIES_ALL "CHARITIES_CLAIMS_FRONTEND"
Pass arguments to the main.sh script for Customs Finanical services.
./main.sh CUSTOMS_FINANCIALS_ALL "CUSTOMS_FINANCIALS_FRONTEND"
I've created separate shell scripts where you can run without having to remember the arguments for the main.sh script. Each separate script will pass the correct arguments to the main.sh script to spin up the services and kill the correct processes.
DASS Charities - Run this script to spin up DASS Charities services and stop the Charities Claims Frontend. This will allow you to run and test Charities Claims Frontend on your localhost.
./charities-frontend.sh
Customs Finanical services - Run this script to spin up Customs Finanical services and stop the Customs Finanical Frontend process. This will allow you to run and test Customs Finanical Frontend on your localhost.
./customs-financials-frontend.sh
Set up read and write permissions for your shell scripts.
chmod +x ./main.sh