Running Canvas LMS Locally
Overview
- Virtualize Ubuntu 16.04 in VirtualBox
- Configuring Ubuntu Environment
- Quick Starting
Canvas-LMS
Part 1 - Virtualize Ubuntu 16.04 in VirtualBox
Part 2 - Configuring Ubuntu Environment
-
install
curl
sudo apt install curl
-
Execute the command below to install
Git
sudo apt install git
-
Execute the command below to install
Docker
sudo apt install docker.io
-
Execute the command below to
curl
an installation ofDocker-Compose 1.20.0
sudo curl -L "https://github.com/docker/compose/releases/download/1.20.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-
Execute the command below to change permissions on
docker-compose
installationsudo chmod +x /usr/local/bin/docker-compose
-
Execute the command below to verify that
docker-compose
has been installeddocker-compose -version
-
Execute the command below to create a
dev
directorymkdir ~/dev
Part 3 - Quick Starting Canvas-LMS
-
Execute the command below to clone
canvas-lms
git clone https://github.com/instructure/canvas-lms.git ~/dev/canvas-lms
-
Execute the command below to change directories to newly cloned project
cd ~/dev/canvas-lms
-
Execute the command below to quick-start the project
./script/docker_dev_setup.sh
Troubleshooting
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
This may happen if
-
‘Synaptic Package Manager’ or ‘Software Updater’ is open.
-
Some apt command is running in Terminal.
-
Some apt process is running in background.
For above wait for the process to complete. If this does not happen run in terminal:
sudo killall apt apt-get
If none of the above works, remove the lock files. Run in terminal:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
then reconfigure the packages. Run in terminal:
sudo dpkg --configure -a
and
sudo apt update