Vagrant : Différence entre versions

De Asso Val Libre
Aller à : navigation, rechercher
(Bases)
Ligne 12 : Ligne 12 :
 
== Bases ==
 
== Bases ==
  
  vagrabt help
+
  vagrant help
  
 
  vagrant box list  
 
  vagrant box list  
Ligne 18 : Ligne 18 :
 
  vagrant init <box>
 
  vagrant init <box>
  
  vagrant status  
+
  vagrant status
 
 
  
 
== TOP5 ==
 
== TOP5 ==

Version du 15 décembre 2021 à 12:32

Outil de gestion de machines virtuelles.

 sudo apt-get install vagrant

Vagrant est développé en Ruby.

 vagrant box list
There are no installed boxes! Use `vagrant box add` to add some.

Bases

vagrant help
vagrant box list 
vagrant init <box>
vagrant status

TOP5

Une sélection maximale de 5 liens pour en savoir plus...

Attention

Versions

  • Une version donnée de Vagrant fonctionne avec certaines versions de VirtualBox


Proxy

Les image sont récupérées via des requêtes internet vers les serveurs/fournisseurs. Il faut donc paramétrer un éventuel proxy. Eg :

 export https_proxy=http://...:..
 export http_proxy=http://...:..

Tests

 vagrant box add ubuntu/xenial32
 ==> box: Loading metadata for box 'ubuntu/xenial32'
   box: URL: https://atlas.hashicorp.com/ubuntu/xenial32
 ==> box: Adding box 'ubuntu/xenial32' (v20171006.0.0) for provider: virtualbox
   box: Downloading: https://vagrantcloud.com/ubuntu/boxes/xenial32/versions/20171006.0.0/providers/virtualbox.box

Les fichiers correspondants sont disponibles dans ~/.vagrant

Mediawiki

https://www.mediawiki.org/wiki/MediaWiki-Vagrant
mkdir Wiki-vagrant
cd Wiki-vagrant/
git clone --recursive https://gerrit.wikimedia.org/r/mediawiki/vagrant
cd vagrant/
vagrant up
http://localhost:8080