Blame view

README.md 2.58 KB
bc091391   hmalti   help + README
1
  # Introduction
e9736e93   hmalti   Correction README.md
2
  
bc091391   hmalti   help + README
3
  Ceci est un outil simple de gestion de conteneurs (Comme Docker). Il permet de créer et gérer des conteneurs tout en personnalisant leur configuration. 
e9736e93   hmalti   Correction README.md
4
  
bc091391   hmalti   help + README
5
6
7
8
9
10
  Il est possible de créer une image, lui attribuer un nom, choisir sa taille et son emplacement.
  
  À partir de cette dernière, vous pourrez créer un conteneur : choisir son nom, l'image sur laquelle il reposera, son chemin, ses bridges, les adresses IPV4 associées ainsi que le programme qui sera exécuté dessus.
  
  De plus, vous avez la possibilité de créer un bridge, lui attribuer un nom et lui associer une adresse IPV4.
  
2afb9b1f   hmalti   Corrections READM...
11
  > Pour connaître toutes les commandes possibles, un utilitaire help est mis à votre disposition grâce à la commande : `baleine.sh help`
e9736e93   hmalti   Correction README.md
12
13
  
  # Structure du code
bc091391   hmalti   help + README
14
  
bc091391   hmalti   help + README
15
16
17
18
19
20
21
22
23
24
  Les scripts shell de ce projet sont structurés comme suit : 
  
  Image | Bridge | Container
  ------------ | -------------| -------------
  create_image | create_bridge| create_container
  list_images  | list_bridges | list_containers
  remove_images  | remove_bridges | remove_containers
   | |  up_bridge| stop_container
    | | down_bridge | exec_container
  
e9736e93   hmalti   Correction README.md
25
  ## Images
bc091391   hmalti   help + README
26
  
e9736e93   hmalti   Correction README.md
27
28
  * create_image : permet de créer une image
  ```             
bc091391   hmalti   help + README
29
30
  baleine.sh image create -i myimage -s 10240 -r /var/lib/baleine/images -p http_proxy=http://proxy.polytech-lille.fr:3128
  ```
e9736e93   hmalti   Correction README.md
31
32
33
  
  * list_image : permet de lister les images existantes 
  ```
bc091391   hmalti   help + README
34
35
  baleine.sh image list 
  ```
e9736e93   hmalti   Correction README.md
36
37
38
39
  
  * remove_images : permet la suppression de l'image donnée en argument. 
  
  ```
bc091391   hmalti   help + README
40
41
  baleine.sh image remove -i myimage 
  ```
bc091391   hmalti   help + README
42
  
e9736e93   hmalti   Correction README.md
43
  ## Bridges 
bc091391   hmalti   help + README
44
  
e9736e93   hmalti   Correction README.md
45
46
  * create_bridge : permet de créer un bridge
  ```
bc091391   hmalti   help + README
47
48
  baleine.sh bridge create -b mybridge -a 192.168.42.1/24
  ```
e9736e93   hmalti   Correction README.md
49
50
51
  
  * list_bridge : permet de lister les bridges existante
  ```
bc091391   hmalti   help + README
52
53
  baleine.sh bridge list 
  ```
e9736e93   hmalti   Correction README.md
54
55
56
  
  * remove_bridges : permet la suppression de du bridge donné en argument
  ```
bc091391   hmalti   help + README
57
58
  baleine.sh bridge remove -b mybridge 
  ```
e9736e93   hmalti   Correction README.md
59
  
bc091391   hmalti   help + README
60
  * up_bridge : permet de rendre fonctionnel un bridge.
e9736e93   hmalti   Correction README.md
61
  ```bash
bc091391   hmalti   help + README
62
63
  baleine.sh bridge up -b mybridge 
  ```
e9736e93   hmalti   Correction README.md
64
65
  
  * down_bridge : permet de désactiver un bridge
bc091391   hmalti   help + README
66
67
68
  ```bash
  baleine.sh bridge down -b mybridge 
  ```
bc091391   hmalti   help + README
69
  
e9736e93   hmalti   Correction README.md
70
  ## Containers
bc091391   hmalti   help + README
71
  
e9736e93   hmalti   Correction README.md
72
73
  * create_container : permet de créer un containe 
  ```
bc091391   hmalti   help + README
74
75
  baleine.sh container create -c mycontainer -i myimage -b mybridge -r /var/lib/baleine/containers -a 192.168.42.1/24 -p "/usr/sbin/apache2ctl start"
  ```
e9736e93   hmalti   Correction README.md
76
77
78
  
  * list_container : permet de lister les containers existante
  ```
bc091391   hmalti   help + README
79
80
  baleine.sh container list 
  ```
e9736e93   hmalti   Correction README.md
81
82
83
  
  * remove_containers : permet la suppression de du container donné en argument
  ```
bc091391   hmalti   help + README
84
85
  baleine.sh container remove -c mycontainer 
  ```
e9736e93   hmalti   Correction README.md
86
87
  
  * stop_container :
bc091391   hmalti   help + README
88
89
90
  ```bash
  baleine.sh container stop -c mycontainer 
  ```
e9736e93   hmalti   Correction README.md
91
92
  
  * exec_container :
bc091391   hmalti   help + README
93
94
95
  ```bash
  baleine.sh container exec -c mycontainer 
  ```