From 70b1a04131146adc6bf4f864c54c40ee0d283894 Mon Sep 17 00:00:00 2001 From: test2 Date: Thu, 17 Oct 2019 13:55:11 +0300 Subject: [PATCH] rm --- sec.adoc | 3 -- test.adoc | 157 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+), 3 deletions(-) create mode 100644 test.adoc diff --git a/sec.adoc b/sec.adoc index aab56c3..aa30d08 100644 --- a/sec.adoc +++ b/sec.adoc @@ -11,12 +11,9 @@ Apostolos rootApostolos@swarmlab.io :source-highlighter: highlight :sectnums: -:sourcedir: Homtos -:sourcedir-root: {sourcedir} include::header.adoc[] -:sourcedir: {sourcedir-root} diff --git a/test.adoc b/test.adoc new file mode 100644 index 0000000..aa30d08 --- /dev/null +++ b/test.adoc @@ -0,0 +1,157 @@ += Ασφάλεια Δικτύων και Επικοινωνιών ! +Apostolos rootApostolos@swarmlab.io +// Metadata: +:description: Intro and Install +:keywords: sec, iptables +:data-uri: +:toc: right +:toc-title: Πίνακας περιεχομένων +:toclevels: 4 +:icons: font +:source-highlighter: highlight +:sectnums: + + +include::header.adoc[] + + + + +{empty} + + + +[[cheat-Docker]] +== Install swarmlab-sec (Home PC) + +- Install docker + +http://docs.swarmlab.io/Howtos/docker/install.adoc.html[^] + +- Clone repo https://git.swarmlab.io:3000/swarmlab/swarmlab-sec + +HowTo: See http://docs.swarmlab.io/Howtos/git/use-git.adoc.html + +.INSTALL +[NOTE] +==== +See INSTALL.md for Installation Instruction +==== + +.lab +[NOTE] +==== +In Lab's everything is ready! +Goto "create" +==== + +[[cheat-swarmlab-sec]] +== Usage (swarmlab-sec) + + +- Open a console + +- Create a directory + +``` +cd dir +swarmlab-sec + +create create project (swarmlab-sec create) +up start swarmlab-sec (swarmlab-sec up size=10) +scale resize swarmlab-sec (swarmlab-sec scale size=30) +reload rebuild image (swarmlab-sec reload size=15) +login login swarmlab-sec (swarmlab-sec login) +exec execute command (swarmlab-sec exec [SHELL COMMAND]) +down stop swarmlab-sec (swarmlab-sec down) +clean clean project (swarmlab-sec clean) +list show instances (swarmlab-sec swarmlab-sec list) +help show help (swarmlab-sec help) +``` + +[NOTE] +==== +Using the tab key to automatically complete unambiguous commands and paths in Bash +==== + + +[[cheat-swarmlab-create]] +== Create swarmlab project + +``` +mkdir myproject +cd myproject +swarmlab-sec create +``` +.Relevant files: +``` +Project +├── Dockerfile # Image specification +├── project # Sample program source code +│ └── hello_world.c +├── ssh # keys for accessing +│ ├── id_rsa # (could generate your own) +│ └── id_rsa.pub +├── docker-compose.yml # Container orchestration +``` + +[[cheat-swarmlab-up]] +== Spin up the swarmlab cluster + +``` +cd myproject +swarmlab-sec up size=5 +``` + + +.We built a high-performing, scalable infrastructure +image:./swarmlab-network.png[alt="Swarmlab"] + + + +[[cheat-swarmlab-up1]] +== Login to the swarmlab cluster + +``` +cd myproject +swarmlab-sec login +``` + + +[[cheat-swarmlab-scale]] +== Scale cluster in real-time + +As the cluster running, without having to close the session, open a different terminal and go back to the project directory. + +``` +cd myproject +swarmlab-sec scale size=10 +``` + +[[cheat-swarmlab-down]] +== shutdown swarmlab-sec cluster + + +``` +cd myproject +swarmlab-sec down +``` + +:hardbreaks: + +{empty} + +{empty} + +{empty} + +:!hardbreaks: + +''' + +.Reminder +[NOTE] +==== +:hardbreaks: +Caminante, no hay camino, +se hace camino al andar. + +Wanderer, there is no path, +the path is made by walking. + +*Antonio Machado* Campos de Castilla +====