Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Learning Locker Open Source installer

This is the HT2 Labs Learning Locker Open Source installer. It's designed to walk you through the process of downloading the code, running any steps needed (such as compilation) and generally setting up a complete working instance.

To do this it detects your operating system, installs any software needed then pulls the code down from Github, runs the build steps and installs to whichever directory you've specified. You'll be prompted for everything required while you run the script.

QuickStart

You must run this script as root user. Typically this can be done by running sudo su -

To install or update Learning Locker, run the install script via one of the commands below. Then, follow the prompts given.

Install with cURL

curl -o- -L https://raw.githubusercontent.com/LearningLocker/deploy/master/deployll.sh > deployll.sh && bash deployll.sh

Install with Wget:

wget -qO deployll.sh https://raw.githubusercontent.com/LearningLocker/deploy/master/deployll.sh && bash deployll.sh

Fully Supported Operating Systems

Ubuntu 16
Ubuntu 18 [RECOMMENDED]

The install script may work on other systems, but this is not guaranteed

Recommended Hardware

While there is no specific hardware requirement beyond a reasonably modern 64bit x86_64 computer with 2GB of RAM, you should pay attention to your memory usage. If you're running Redis and / or MongoDB on the same server as Learning Locker then you'll need more memory than without. Server load will depend on the use cases for your particular organisation.

Amazon Machine Image (AMI)

You can also install Learning Locker using an Amazon Machine Image (AMI). Our AMIs are available in the list of community AMIs by searching for 'learning locker' in the following EC2 zones:

us-east-1 (N. Virginia)        |  eu-west-2 (London)
us-east-2 (Ohio)               |  ap-southeast-1 (Singapore)
us-west-1 (N. California)      |  ap-southeast-2 (Sydney)
us-west-2 (Oregon)             |  ap-northeast-2 (Seoul)
ca-central-1 (Canada Central)  |  ap-northeast-1 (Tokyo)
eu-west-1 (Ireland)            |  ap-south-1 (Mumbai)
eu-central-1 (Frankfurt)       |  sa-east-1 (Sao Paulo)

The AMIs are built with all the required software on them and are designed to be used to try out Learning Locker with little friction or need for systems administration experience. However, you will need to be familiar with starting AMIs and the Amazon interface in general which is outside the scope of this document.

When you start the AMI, you will need to allow access to port 80 from your IP in order to be able to view the Learning Locker user interface. You will also need to ssh into your instance using the default 'ubuntu' user and the keypair you specified at launch time in order to read the /home/ubuntu/ll_credentials.txt file which contains autogenerated default login credentials for a sample organisation and user. This file will be generated when the server is fully running and can take up to 5 minutes to be created.

Configuration

The software creates a .env file in your install directory and within the xapi/ sub-directory. You can configure things here if you want to use external mongo or redis servers or change any ports in use. In addition, the software uses Nginx to route traffic. Routing rules are defined in the Learning Locker Nginx configuration which is installed as part of the script, which can be found here: /etc/nginx/conf.d/learninglocker.conf

Running / restarting

The system works by creating four Node.js server instances running under PM2 (a Node process management suite) which get traffic routed to them by Nginx. In order to make sure that everything restarts automatically, the build process creates a restart script which you can run as follows:

service pm2-{USER} restart

The user in this is the user you opted to install Learning Locker under. If you went with the default of 'learninglocker' then this would be:

service pm2-learninglocker restart

About

Official Deployment Scripts for Learning Locker

Resources

Releases

No releases published

Packages

No packages published