Docker setup for deploying the Sakai LMS with the community plugins for both xAPI and SCORM.
This work expands on the great work of the Hypothesis team to fix issues with the original repository and allow for targeted versions of Sakai during deployment.
This is a Docker Compose deployment, so everything should be straightforward.
git clone https://github.com/vbhayden/docker-sakai-xapi
cd docker-sakai-xapi
sudo ./install-reqs.sh
🍍./get-repos.sh 20x
🍎sudo docker-compose up -d --build
🍍: This script will install Curl, Docker, and Docker Compose if those are not already found on your system. If you have all 3 of these, feel free to skip that step.
🍎: The versions known to be supported are 20.x
and 19.x
, but any branch found on all 3 original repositories will work. Additionally, you could remove the Dockerfile sections responsible for adding the plugins themselves and then just target whatever Sakai version you wanted.
The first time this command is run the Docker image for Sakai will be built, which can take 10 minutes or more. Additionally when the Sakai starts for the first time it will spend several minutes initializing.
Once the Sakai container image has been built and the container is created, you can access Sakai by browsing to http://localhost:8080/portal.
The default admin user is admin
and the password is admin
.
If you have problems building or running the Docker container on macOS, you may eed to increase the memory allowance for Docker Engine up from the default of 2GB to 3GB or more.
This can be done in the "Advanced" section of Docker for Mac's Preferences UI.