diff --git a/auto-complete.sh b/auto-complete.sh index 329283d..bf1fb48 100755 --- a/auto-complete.sh +++ b/auto-complete.sh @@ -4,7 +4,7 @@ function libs() { if [ "$1" != "" ]; then - COMPREPLY=($(compgen -W "all xelatex-thesis infrastructure-as-code network-scanning network-adhoc raspi-docker tech-list faq sensor-node ssh-tunneling iptables poc-datacollector help" "${COMP_WORDS[$COMP_CWORD]}")) + COMPREPLY=($(compgen -W "all xelatex-thesis infrastructure-as-code sidecar-firefox network-scanning network-adhoc raspi-docker tech-list faq sensor-node ssh-tunneling iptables poc-datacollector help" "${COMP_WORDS[$COMP_CWORD]}")) fi } diff --git a/build.sh b/build.sh index 10152f2..4bbc8dc 100755 --- a/build.sh +++ b/build.sh @@ -45,6 +45,8 @@ usage () echo "" echo -e " ${txtg}raspi-docker:${NOCOLOR} This tutorial demonstrates, howto setup docker on Raspberry PI & howto use it " echo "" + echo -e " ${txtg}sidecar-firefox:${NOCOLOR} This tutorial demonstrates, howto setup firefox & howto use it as sidecar" + echo "" echo -e " ${txtg}sensor-node:${NOCOLOR} This tutorial demonstrates, howto create a mote with Raspberry Pi and Arduino & howto use it " echo "" echo -e " ${txtg}ssh-tunneling:${NOCOLOR} This tutorial demonstrates, howto create a ssh-tunneling & howto use it " @@ -123,6 +125,13 @@ do COMMAND_CREATE=1 ;; + sidecar-firefox) + DESC="sidecar-firefox" ; + build="build.sh" ; + docdir="sidecar-firefox" ; + COMMAND_CREATE=1 + ;; + xelatex-thesis) DESC="xelatex-thesis" ; build="build.sh" ; diff --git a/infrastructure-as-code/modules/ROOT/pages/index.adoc b/infrastructure-as-code/modules/ROOT/pages/index.adoc index 7f3ee8f..a7ae60c 100644 --- a/infrastructure-as-code/modules/ROOT/pages/index.adoc +++ b/infrastructure-as-code/modules/ROOT/pages/index.adoc @@ -8,30 +8,29 @@ image::ROOT:swarmlab.png[swarmlab,150,float=right] Imaging -* a single click and you’re able to get a full server up and running. +* one click and you can run a full server -** include your favorite operating system, +** to include your favorite operating system ** applications ** security rules -** and custom settings. +** and custom settings -And the configuration +*and this can be reproduced tens, hundreds or even thousands of times, all without human intervention* - can be replicated dozens, hundreds, or even thousands of times, all without human intervention. - -Thats the world of infrastructure as code, IaC for short. +==== +*Thats the world of infrastructure as code, IaC for short* +IaC is a process where, you define a configuration template with all the required settings and customizations, and a provisioning tool will take care of the rest. -IaC is a process where instead of manually setting up every server, you define a configuration script with all the required settings and customizations, and a provisioning tool will take care of the rest. +==== == implement infrastructure-as-code -To successfully implement infrastructure-as-code -and To keep the concept simple we will use: +To successfully implement the infrastructure-as-code and to keep the concept simple we will use * git for "Code Repository and Versioning" @@ -103,7 +102,7 @@ edit inverntory.yml (ifconfig, nmap etc) run fluentd.yml.sh -TIP: make a cup off cafe! +TIP: It's time to relax and have a cup of coffee! ==== diff --git a/sidecar-firefox/antora.yml b/sidecar-firefox/antora.yml new file mode 100644 index 0000000..88bcf50 --- /dev/null +++ b/sidecar-firefox/antora.yml @@ -0,0 +1,5 @@ + name: swarmlab_sidecar-firefox + title: swarmlab_sidecar-firefox + version: docs + nav: + - modules/ROOT/nav.adoc diff --git a/sidecar-firefox/modules/ROOT/images/adhoc.png b/sidecar-firefox/modules/ROOT/images/adhoc.png new file mode 100644 index 0000000..6256678 Binary files /dev/null and b/sidecar-firefox/modules/ROOT/images/adhoc.png differ diff --git a/sidecar-firefox/modules/ROOT/images/swarmlab.png b/sidecar-firefox/modules/ROOT/images/swarmlab.png new file mode 100644 index 0000000..d94ea42 Binary files /dev/null and b/sidecar-firefox/modules/ROOT/images/swarmlab.png differ diff --git a/sidecar-firefox/modules/ROOT/images/trafic.png b/sidecar-firefox/modules/ROOT/images/trafic.png new file mode 100644 index 0000000..d7e160a Binary files /dev/null and b/sidecar-firefox/modules/ROOT/images/trafic.png differ diff --git a/sidecar-firefox/modules/ROOT/images/vehigle.png b/sidecar-firefox/modules/ROOT/images/vehigle.png new file mode 100644 index 0000000..46d0c6b Binary files /dev/null and b/sidecar-firefox/modules/ROOT/images/vehigle.png differ diff --git a/sidecar-firefox/modules/ROOT/nav.adoc b/sidecar-firefox/modules/ROOT/nav.adoc new file mode 100644 index 0000000..3129493 --- /dev/null +++ b/sidecar-firefox/modules/ROOT/nav.adoc @@ -0,0 +1 @@ +* xref:index.adoc[firefox] diff --git a/sidecar-firefox/modules/ROOT/pages/index.adoc b/sidecar-firefox/modules/ROOT/pages/index.adoc new file mode 100644 index 0000000..c53468f --- /dev/null +++ b/sidecar-firefox/modules/ROOT/pages/index.adoc @@ -0,0 +1,39 @@ += Sidecar firefox! + +image::ROOT:swarmlab.png[swarmlab,150,float=right] + + +== What is a "sidecar"? + + +A Sidecar container is a container added to the a Network swarm. + +Be placed it in a Network you can use the same resources being used by the main Network swarm. + +With the Embedded container as a sicedar you are capable to access the resource. + + +== Usage + +=== run instance + +* Run "microservice-firefox" + +** Instances->running Containers->Actions [microservice-firefox_masterservice_1] + +=== Attach network + +** Instances->running Containers->Actions [microservice-firefox_masterservice_1] + +*** Networks->"Select Network" + +=== open Gui + + +** Instances->running Containers->Actions [microservice-firefox_masterservice_1]->openGui + + + + + + diff --git a/sidecar-firefox/run/build-intro.sh b/sidecar-firefox/run/build-intro.sh new file mode 100755 index 0000000..af181d8 --- /dev/null +++ b/sidecar-firefox/run/build-intro.sh @@ -0,0 +1,4 @@ +antora --fetch /antora/site-intro.yml +antora /antora/site-intro.yml +ifconfig +http-server build/site -c-1 diff --git a/sidecar-firefox/run/build.sh b/sidecar-firefox/run/build.sh new file mode 100755 index 0000000..7122c21 --- /dev/null +++ b/sidecar-firefox/run/build.sh @@ -0,0 +1,4 @@ +antora --fetch /antora/site.yml +antora /antora/site.yml +ifconfig +http-server build/site -c-1 diff --git a/sidecar-firefox/site.yml b/sidecar-firefox/site.yml new file mode 100644 index 0000000..8cff45e --- /dev/null +++ b/sidecar-firefox/site.yml @@ -0,0 +1,21 @@ +site: + title: Swarmlab sidecar-firefox + url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs + start_page: swarmlab_sidecar-firefox::index.adoc +content: + sources: + - url: https://git.swarmlab.io:3000/docs/Documentation.git + branches: master + start_path: sidecar-firefox +ui: + bundle: + url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip + snapshot: true + supplemental_files: ./supplemental-ui +asciidoc: + attributes: + :plantuml-server-url: http://www.plantuml.com/plantuml + extensions: + - '@djencks/asciidoctor-mathjax' + - asciidoctor-plantuml + diff --git a/site.yml b/site.yml index fec440c..6f6328b 100644 --- a/site.yml +++ b/site.yml @@ -49,6 +49,10 @@ content: - url: https://git.swarmlab.io:3000/docs/Documentation.git branches: master start_path: infrastructure-as-code + + - url: https://git.swarmlab.io:3000/docs/Documentation.git + branches: master + start_path: sidecar-firefox ui: bundle: url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip