You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

142 lines
3.8 KiB

4 years ago
4 years ago
<img align="right" width="300" height="300" src="https://git.swarmlab.io:3000/zeus/swarmlab-hybrid/raw/branch/master/docs/images/hybrid-1.png">
4 years ago
### Welcome to Swarmlab.io
4 years ago
4 years ago
4 years ago
**Swarmlab** is a powerful collaboration tool that connects tutors and students
4 years ago
4 years ago
**in a unique all-in-one environment that gets work done fast and easily**
4 years ago
4 years ago
#### **Ready-to-Use Virtual Labs one click away.**
4 years ago
4 years ago
### Table of contents
4 years ago
1. [Features](#introduction)
4 years ago
2. [System requirements ](#systemrequirements)
4 years ago
3. [Prerequisites](#prerequisites)
4 years ago
4. [Installation](#installation)
4 years ago
5. [More info](#moreinfo)
4 years ago
4 years ago
### Features<a name="introduction"></a>
4 years ago
4 years ago
4 years ago
**Share your exercises and content as a tutor and access it as student on demand**
4 years ago
4 years ago
> ##### On demand Labrooms
>
> * Optimized for both Students and Tutors
> * Tutors bootstrap their labrooms using our tools
> * Students can join the created labrooms according to their interrests
> * Following the lead of a cloud based world, we use git for tutors to create, distribute and run their lessons.
>
4 years ago
> ##### Labroom hybrid
>
4 years ago
> * Connect multiple computers through a network.
> * Scale up or down without rebuilding
>
4 years ago
4 years ago
4 years ago
### System requirements<a name="systemrequirements"></a>
4 years ago
**Before** you create and configure a hybrid deployment using the swarmlab-agent client, your Local Machines need to meet certain requirements.
> If you don't meet those requirements, you won't be able to complete the steps within the swarmlab-agent client and you won't be able to configure a hybrid deployment between your Local Enviroment and Swarmlab Online Enviroment.
4 years ago
- A Linux Server (Virtual or Physical)
- You must have super user privileges (sudo)
- Docker Engine- Community version 18 or later is required.
- Docker Engine is supported on x86_64 (or amd64), armhf, and arm64 architectures.
- RAM
- Absolute minimum to run the daemon and some very light containers - 512MB
- Minimum for “comfortable” usage – 2GB
4 years ago
- CPU
4 years ago
- Minimum: 2
- Recommended 4+
4 years ago
- Disk Space
4 years ago
- 10 GB for internal requirements.
- The amount of additional disk space required for load file staging, persistence, or backups depends on the size of the data to be loaded.
4 years ago
4 years ago
> Docker uses a hypervisor with a VM, and the host server must support virtualization.
4 years ago
4 years ago
4 years ago
#### Prerequisites<a name="prerequisites"></a>
4 years ago
4 years ago
* node version >15
4 years ago
4 years ago
```sh
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs
```
* docker
4 years ago
4 years ago
```sh
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce
sudo usermod -aG docker [USERNAME]
```
* docker-compose
4 years ago
4 years ago
```sh
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
```
* pm2
4 years ago
4 years ago
```sh
sudo npm install -g pm2
```
* wireguard
4 years ago
4 years ago
```sh
sudo apt install wireguard jq
```
4 years ago
### Installation<a name="installation"></a>
4 years ago
4 years ago
<br />
<p align="center">
<p align="center">
4 years ago
- Clone the repo
4 years ago
4 years ago
```sh
git clone https://git.swarmlab.io:3000/zeus/swarmlab-hybrid.git
```
4 years ago
- Install it!
4 years ago
4 years ago
```sh
cd swarmlab-hybrid
./install.sh
```
4 years ago
- Open URL __http://localhost:3088__ in browser
4 years ago
- Get a Swarmlab account.
4 years ago
- Get a free API Key at **Settings->Enable the Swarmlab hybrid** Menu
4 years ago
</p>
</p>
4 years ago
4 years ago
### More Info<a name="moreinfo"></a>
4 years ago
4 years ago
You can find our docs in **docs** Directory
4 years ago
4 years ago
The Swarmlab docs are in **AsciiDoc** (similar to markdown), **PDF** and **html** format
4 years ago
4 years ago
4 years ago
Asciidoc add-on can be found here:
4 years ago
http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/doclive/asciidoc.adoc.html#_setup_live_preview_using_a_web_browser
4 years ago