Officially supported OS for development is Ubuntu 20.04 LTS
and all the following intructions are tested on it.
But you are free to use any other environment that supports Terraform and Ansible.
1. Clone DCL project
git clone /~https://github.com/zigbee-alliance/distributed-compliance-ledger.git
2. Install Terraform CLI
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform
sudo apt-get update
sudo apt-get install -y --no-install-recommends python3
sudo apt install python3-pip
sudo apt install python3-testresources
4. Install Ansible and its dependencies
Run the following commands from the DCL project home
sudo pip install -r deployment/requirements.txt
ansible-galaxy install -r deployment/galaxy-requirements.yml
5. Install Dasel to make conversions between json
and yaml
sudo wget -qO /usr/local/bin/dasel /~https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_amd64
sudo chmod a+x /usr/local/bin/dasel