Giter Club home page Giter Club logo

deploy's Introduction

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 http://lrnloc.kr/installv2 > deployll.sh && bash deployll.sh

Install with Wget:

wget -qO deployll.sh http://lrnloc.kr/installv2 && 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

deploy's People

Contributors

ht2 avatar gardron avatar asahd avatar ryasmi avatar andrewhickey avatar figureone avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.