From 3a4d72d474416c9182923fff680a836fbffdde5e Mon Sep 17 00:00:00 2001 From: test2 Date: Fri, 17 Jan 2020 21:25:04 +0200 Subject: [PATCH] usage repo --- index.adoc | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/index.adoc b/index.adoc index 73d8b0e..4da982f 100644 --- a/index.adoc +++ b/index.adoc @@ -17,7 +17,7 @@ include::header.adoc[] {empty} + -This HowTo teaches you how to use Services on SwarmLab. +The followin HowTo shows how services are used in swarmlabs! == What is swarmlab.io? @@ -45,7 +45,63 @@ The goal of this project is to provide the easiest, fastest, and most painless w === http://docs.swarmlab.io/SwarmLab-HowTos/HowTo-gitea.adoc.html[HowTo-create Repo] -=== http://docs.swarmlab.io/SwarmLab-HowTos/HowTo-create-lab.adoc.html[HowTo-create_and_Run Lab Instance] +==== Repo Directory_Structure_4_Lab_Instance + + Lab_Instance first clones your Repo and then automatically loads certain files based on a known file +structure. + + +.Directory_Structure +[source,bash] +---- +swarmlab/ +├── run +├── runafter +└── runbefore +---- + +===== runbefore + + Lab_Instance dependencies. "runbefore" allows you to automatically pull-in other dependencies when using a Lab_Instance. This file should contain a list of tasks and parameters to insert before the specified repos are executed on Lab_Instance. + +===== run + + Contains the main list of tasks to be executed by the Lab_Instance. + +===== runafter + + + Lab_Instances is the machanism that allows you to to permanently save your data. + + Lab_Instances are mortal, and it’s pretty much routine them to be stoped and deleted. + + If you have something like a data/log file that needs to be saved then at this point make sure to back it up! + +[NOTE] +==== +You can use any Script Programming Language you want to automate the +execution of Lab_Instance + +The shebang **MUST** be in the first line + +.e.g. +[source,bash] +---- +#!/usr/bin/perl + +use strict; +use warnings; + +print "hello world!\n"; +---- + + +==== + + + + +=== http://docs.swarmlab.io/SwarmLab-HowTos/HowTo-create-lab.adoc.html[HowTo-create_and_Run Lab_Instance]