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.

128 lines
2.6 KiB

3 years ago
## Swarmlab is a collection of services that aims to
3 years ago
3 years ago
> - provide teachers and professors with online remote tools to do their lessons
>
> - give students the opportunity to study real life examples in their chosen area of expertise
>
> - allow developers to fully test and debug their applications and provide POC’s
>
> - or you simply want to use a Application (in a microservices-based architecture)
>
> Swarmlab provides you with all the required tools, tools to teach work or try out demos in a completely virtual environment.
>
> More info: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html
![alt text](images/swarmlab-network.png "")
## LabInstance Alpine 3.13
You have to have a base image on which you will install all of your library and code to create your own custom image. you can use any base image like debian, centos,ubuntu.But you will be certainly biased to any image which is small in size and which has all the repo link. And there come alpine.
From alpine description
Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications.
>
> For comparison, here’s how Alpine compares to other popular distributions of Linux:
3 years ago
>
3 years ago
> DISTRIBUTION VERSION SIZE
3 years ago
>
3 years ago
> Debian Jessie 123MB
3 years ago
>
3 years ago
> CentOS 7 193MB
3 years ago
>
3 years ago
> Fedora 25 231MB
3 years ago
>
3 years ago
> Ubuntu 16.04 118MB
3 years ago
>
3 years ago
> Alpine 3.* 4.98MB
>
Difference in size. Alpine is about 30x smaller than Debian.
Is there a best practice on setting up glibc on docker alpine linux base image?
>
> apk add gcompat
>
https://pkgs.alpinelinux.org/package/edge/community/x86_64/gcompat
## Quickstart
This is a quickstart guide of howto use this
### Default Configuration
- Working Directory
> /home/docker/project
- Default user
> docker
- Default password
> docker
- Default password4root
> pass
### RUN INSTANCE
Swarmlab services can be run in different ways.
- You can run them **through the swarmlab hybrid environment** (http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/hybrid/start-microservices.html)
- or use them individually at will on the **command line of your system**
#### CLI
> git clone ...
>
> cd [DIRECTORY]
>
#### help
>
> make help
>
#### create service
>
> make create
>
#### start service
>
> make start
>
#### stop service
>
> make stop
>
#### list service
>
> make list
>
#### clean service
>
> make clean
>