CHT Install on clean install of macOS Big Sur 11.6 on MacBook Pro (Intel MacBook Pro 15-inch, Mid 2014)
- download docker desktop
- install docker desktop
- install homebrew (can do xcode too, but mabye homebrew is lighter weight? Oh...homebrew installs xcode?) which will in turn install
git
- clone cht-core into ~/Documents/:
cd ~/Documents&&git clone https://github.com/medic/cht-core.git
- create an env file for your first CHT instance in
~/Documents/
echo "COMPOSE_PROJECT_NAME=my_first_project" > ~/Documents/cht_docker_env echo "CHT_HTTP=8080" >> ~/Documents/cht_docker_env echo "CHT_HTTPS=8443" >> ~/Documents/cht_docker_env
- run the CHT docker helper script
cd ~/Documents/cht-core/scripts/docker-helper&& ./cht-docker-compose.sh -e ../../../cht_docker_env -d up
- success!
┌──────────────────────────────────────────────────────────────────────────────┐ │ CHT Docker Helper: my_first_project │ ├──────────────────────────────────────────────────────────────────────────────┤ │CHT Health - Version Good - NA (jq not installed) │ │CHT URL https://127-0-0-1.my.local-ip.co:8443 │ │FAUXTON URL https://127-0-0-1.my.local-ip.co:8443 │ │ │ │Project Containers 2 of 2 │ │Global Containers / Medic Images 2 / 2 │ │Global load Average 4.60 3.20 2.39 │ │ │ │Last Action Installing local-ip.co certificate... │ └──────────────────────────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────┐ │ Successfully started my_first_project │ ├──────────────────────────────────────────────────────────────────────────────┤ │ login: medic │ │ password: password │ │ │ │ Have a great day! │ └──────────────────────────────────────────────────────────────────────────────┘
* Note: helper script can't currently detect your LAN IP - see docs