-
Notifications
You must be signed in to change notification settings - Fork 40
Home
Derschatta edited this page Mar 9, 2024
·
40 revisions
Note: For Ubuntu/Debian users, you can use this easy script to install everything in one go.
- Docker Desktop plus Mutagen (install extension for better performance)
- Alternatively: Rancher Desktop plus Mutagen (use classic approach)
*If you are on a newer Mac with M1 or M2 chip check out: Apple Silicon support
Recommended: WSL2
Alternatively: Docker Desktop + Mutagen (install extension for better performance)
Note: On Windows, these next steps will need to be done within your WSL2 Ubuntu terminal/filesystem
- Clone this repo (e.g. to ~/docker-dev)
- Create a directory that you can clone your Totara sites into (
mkdir ~/totara-sites) - 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) - In the docker folder copy the
.env.distfile to.env(cp .env.dist .env) - Within the copied
.env, setLOCAL_SRCto be the full path to your local Totara site folder (e.g.LOCAL_SRC=/home/USERNAME/totara-sites) - Copy the
config.phpfile from this repo into your Totara site repo folder (or alternatively create aconfig.phpbased uponconfig.example.php/config.php.distin the site root) - Add the
bin/folder to your paths (e.g.PATH=$PATH:/path/to/docker-dev/bin) -
Windows Only: In an elevated Windows command prompt, run
icacls C:\Windows\System32\drivers\etc\hosts /grant Users:W(required for the next step) - Run the
tools/set_hosts.shscript from this repo to add all the required host entries to your/etc/hostsfile - Configure your terminal to use an extended font pack (full font list available here)
- MacOS Only: Set up Mutagen to improve performance (recommended)
See the Usage page for usage documentation.
Copyright (c) 2025 Totara Learning Solutions Limited