Skip to content
Mark Metcalfe edited this page Oct 9, 2021 · 33 revisions

Requirements

Linux

  1. Docker
  2. Docker-compose

MacOS

  1. Docker
  2. Mutagen

Windows

  1. Ubuntu for WSL2
  2. Docker

Installation

Note: On Windows, these next steps will need to be done within your WSL2 Ubuntu terminal/filesystem

  1. Create a directory that you can clone your Totara sites into (mkdir ~/totara-sites)
  2. Clone the Totara source code (For Totara employees, see our BitBucket repository) into your site folder and give it a name (e.g. cd ~/totara-sites && git clone REPO_URL totara13)
  3. Copy the .env.dist file to .env (cp .env.dist .env)
  4. Within the copied .env, set LOCAL_SRC to the path to your local Totara site folder (e.g. LOCAL_SRC=~/totara-sites)
  5. Copy the config.php file from this repo into your Totara site repo folder (or alternatively create a config.php based upon config.example.php/config.php.dist in the site root)
  6. Add the bin/ folder to your paths (e.g. PATH=$PATH:/path/to/docker-dev/bin)
  7. Windows Only: In an elevated Windows command prompt, run icacls C:\Windows\System32\drivers\etc\hosts /grant Users:W (required for the next step)
  8. Run the tools/set_hosts.sh script to add all the required host entries to your /etc/hosts file
  9. Configure your terminal to use an extended font pack

Usage

See the Usage page for usage documentation.

Clone this wiki locally