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.

145 lines
3.8 KiB

3 years ago
3 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">
3 years ago
### Welcome to Swarmlab.io
3 years ago
3 years ago
3 years ago
**Swarmlab** is a powerful collaboration tool that connects tutors and students
3 years ago
3 years ago
**in a unique all-in-one environment that gets work done fast and easily**
3 years ago
3 years ago
#### **Ready-to-Use Virtual Labs one click away.**
3 years ago
3 years ago
### Table of contents
3 years ago
1. [Features](#introduction)
3 years ago
2. [System requirements ](#systemrequirements)
3 years ago
3. [Prerequisites](#prerequisites)
3 years ago
4. [Installation](#installation)
3 years ago
5. [More info](#moreinfo)
3 years ago
3 years ago
### Features<a name="introduction"></a>
3 years ago
3 years ago
3 years ago
**Share your exercises and content as a tutor and access it as student on demand**
3 years ago
3 years ago
> ##### On demand Labrooms
>
3 years ago
> * Ready to use virtual labs
3 years ago
> * Optimized for both Students and Tutors
> * Tutors bootstrap their labrooms using our tools
> * Students can join the created labrooms according to their interrests
>
3 years ago
> ##### Labroom hybrid
>
3 years ago
> * Run and manage applications
3 years ago
> * Scale up or down without rebuilding
3 years ago
> * Connect multiple computers through a network.
3 years ago
> * Move Labs between environments
3 years ago
> * Create your own labs
3 years ago
>
3 years ago
3 years ago
3 years ago
### System requirements<a name="systemrequirements"></a>
3 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.
3 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
3 years ago
- CPU
3 years ago
- Minimum: 2
- Recommended 4+
3 years ago
- Disk Space
3 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.
3 years ago
3 years ago
> Docker uses a hypervisor with a VM, and the host server must support virtualization.
3 years ago
3 years ago
3 years ago
#### Prerequisites<a name="prerequisites"></a>
3 years ago
3 years ago
* node version >15
3 years ago
3 years ago
```sh
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs
```
* docker
3 years ago
3 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
3 years ago
3 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
3 years ago
3 years ago
```sh
sudo npm install -g pm2
```
* wireguard
3 years ago
3 years ago
```sh
sudo apt install wireguard jq
```
3 years ago
### Installation<a name="installation"></a>
3 years ago
3 years ago
<br />
<p align="center">
<p align="center">
3 years ago
- Clone the repo
3 years ago
3 years ago
```sh
git clone https://git.swarmlab.io:3000/zeus/swarmlab-hybrid.git
```
3 years ago
- Install it!
3 years ago
3 years ago
```sh
cd swarmlab-hybrid
./install.sh
```
3 years ago
- Open URL __http://localhost:3088__ in browser
3 years ago
- Get a Swarmlab account.
3 years ago
- Get a free API Key at **Settings->Enable the Swarmlab hybrid** Menu
3 years ago
</p>
</p>
3 years ago
3 years ago
### More Info<a name="moreinfo"></a>
3 years ago
3 years ago
You can find our docs in **docs** Directory
3 years ago
3 years ago
The Swarmlab docs are in **AsciiDoc** (similar to markdown), **PDF** and **html** format
3 years ago
3 years ago
3 years ago
Asciidoc add-on can be found here:
3 years ago
http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/doclive/asciidoc.adoc.html#_setup_live_preview_using_a_web_browser
3 years ago