Getting Started
Prerequisites
- Internet Connection
- Linux VM (Tested on Ubuntu 22.04)
- Enable nested virtualisation on the host Windows machine
- Disable WSL and Hyper-V
- Allocate at least 200GB of storage, 8GB of RAM and 4 cores
- Enable nested virtualisation on the host Windows machine
- Ansible
- Git
Deployment procedure
-
Clone this repository
git clone https://github.com/csitgovsg-acube/infra-production.git --recursive -
Set up Docker image credentials
- Add an Access Token to your GitHub
account with the scopes
read_api. Replace$YOUR_GITHUB_USERNAMEand$PASTE_ACCESS_TOKENwith the respective values.
echo $YOUR_GITHUB_USERNAME > secrets/github_username
echo $PASTE_ACCESS_TOKEN > secrets/github_token - Add an Access Token to your GitHub
account with the scopes
-
Deploy
ansible-playbook --ask-pass --ask-become-pass --inventory inventory-local.yml setup.yml --extra-vars setup_virt=yes setup.yml--extra-varsspecifies additional variables that you want to manually override- Notably,
setup_virtshould only be run when setting up virutal machines via ansible, e.g. on the first run or together withreset_virtenabled - This will take an additional 20-30 minutes to spin up the virtual machines for CAPEv2 sandbox
- Notably,
--ask-become-passwill prompt the user to specify thesudopassword