ACTUS Quick Start
GitHub Version
This guide provides a step-by-step approach to quickly set up and use the ACTUS framework using Docker.
Prerequisites
Ensure the following conditions are met before beginning the installation:
- Docker Desktop is installed and running.
- The following ports are free and available:
- 8083: ACTUS service
- 8082: Risk service
- 27018: MongoDB
Installation
Follow these steps to install and run ACTUS:
-
Clone the repository:
git clone https://github.com/fnparr/docker-actus-rf20
-
Navigate to the directory where the repository was cloned.
-
Run the following command to start the Docker containers:
docker compose -f config2-docker-actus-rf20.yml -p config2-docker-actus-rf20 up
-
Verify that the services are running by checking the logs for the following confirmation message:
Risksrv3Application Started Risksrv3Application in X.XXX seconds
Populating the Database
Populate the database with sample risk factor definitions for a US Treasury 5-Year Falling scenario.
- Navigate to the test files directory:
docker-actus-rf20/actus-riskserver-ce/actus-riskservice/testB
- Run the command to populate the risk database:
source putUst5Y_falling.txt
- Verify successful execution by checking for this message:
ReferenceIndex added Successfully
- Confirm the database population by issuing a curl command:
curl -v http://localhost:8082/findAllReferenceIndexes
This will display the reference data that has been created and saved.
Running a Sample ACTUS Simulation
To execute an ACTUS simulation using the populated data:
- Run the following command:
source l3ANNwRF.txt
- Upon successful execution, you should see this message:
"status": "Success"
Completion
Congratulations! You have successfully:
-
Installed the ACTUS framework.
-
Populated the database with sample risk factors.
-
Run an ACTUS simulation.
Visit the ACTUS GitHub Repository periodically for updates and additional resources.