git clone <this-repo-url> <your-path>Note that a custom Fed-BioMed fork is included as a submodule (in docker/common).
You must initialise the submodule and update when required for the deployment to work
cd cloud_infrastructure
git submodule init
git submodule updateFollow the AWS docs: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
This is so that you can install the aws CDK libraries without affecting your system python installation Ensure you have a recent version of python 3 installed (but do not modify your system python installation) Install venv if you do not have it installed
Create a new virtual environment using
python3 -m venv .aws_fbm_env
Activate the environment. You will need to do this when returning in the future.
source .aws_fbm_env/bin/activateAfter creating and activating the environment, install the dependencies within this environment
pip install -r requirements.txtpython -m pip install aws-cdk-libCDK will build the Docker images locally as part of deployment, so you need both the Docker SDK installed, and also a Docker VM (such as Docker Desktop or Rancher Desktop)
- Docker Desktop and Rancher Desktop run Docker inside a VM; you may need to increase the RAM and disk space available to the VM in order to successfully build the images and to speed up the builds.
- In Docker Desktop you can adjust the memory and Virtual disk limit in
Settings>Resources>Advanced- Recommended: >8GB RAM, >100GB disk limit
It strongly recommended that you use nvm to install/manage node and do not install node directly.
- Install nvm
- macOS note: you can install nvm through homebrew. Install homebrew if necessary and then run
brew install nvm. Make sure you follow the additional instructions - you need to modify your .zshrc file if you are using zsh shell which is default on new macs. If you are using bash, modify .bash_profile instead. You then need to open a new terminal window, or source .zshrc or .bash_profile before continuing in the current window.
- macOS note: you can install nvm through homebrew. Install homebrew if necessary and then run
- Use nvm to install the latest LTS version of node
nvm install --lts
npm install -g aws-cdk- You can do this on the AWS Console: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html
aws configure --profile passian This will create entries in ~/.aws/credentials and ~/.aws/config. Alternately, you can set
these up manually. For more details, see https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html