Commit 2ca9d77f authored by Rafael Monnerat's avatar Rafael Monnerat

packer: Fix style of documentation

parent f53ccc3b
...@@ -10,17 +10,17 @@ How to build one VM? ...@@ -10,17 +10,17 @@ How to build one VM?
1) Install Packer locally by https://www.packer.io/downloads.html, like (exemple): 1) Install Packer locally by https://www.packer.io/downloads.html, like (exemple):
::
mkdir /opt/packer/
cd /opt/packer/ mkdir /opt/packer/
wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip cd /opt/packer/
unzip packer_0.10.1_linux_amd64.zip wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
unzip packer_0.10.1_linux_amd64.zip
2) Building one VM (example):: 2) Building one VM (example)::
::
PATH=$PATH:/opt/packer packer build debian8.json PATH=$PATH:/opt/packer packer build debian8.json
3) You can watch qemu working on a linux machine (with X running), you just 3) You can watch qemu working on a linux machine (with X running), you just
have to edit the json. Replace '"headless": true' by '"headless": false' have to edit the json. Replace '"headless": true' by '"headless": false'
...@@ -30,9 +30,7 @@ How to build all VMs? ...@@ -30,9 +30,7 @@ How to build all VMs?
You can use ansible for build all VMs locally, and gzip them: You can use ansible for build all VMs locally, and gzip them:
:: ansible-playbook build.yml -i localhost,
ansible-playbook build.yml -i localhost,
How to upload to shacache? How to upload to shacache?
-------------------------- --------------------------
...@@ -44,9 +42,7 @@ eventually, update shacache/shacache.cfg. ...@@ -44,9 +42,7 @@ eventually, update shacache/shacache.cfg.
BE CAREFULL, every time you run this command you upload the files to shacache, BE CAREFULL, every time you run this command you upload the files to shacache,
even if the files are there already. even if the files are there already.
:: ansible-playbook upload.yml -i localhost,
ansible-playbook upload.yml -i localhost,
How can I check if all images are on shacache? How can I check if all images are on shacache?
---------------------------------------------- ----------------------------------------------
...@@ -54,12 +50,12 @@ How can I check if all images are on shacache? ...@@ -54,12 +50,12 @@ How can I check if all images are on shacache?
You can use the script 'util/testupload.sh' to know if all generated images You can use the script 'util/testupload.sh' to know if all generated images
are uploaded to shacache. are uploaded to shacache.
::
bash util/testupload.sh
# expected output similat to this bash util/testupload.sh
OK 7d3f421e75ca114abcc20b4bed6cb6fc3d430b8c016b00a1d9cb1f14af6f3c342de6a5dd3c42b52de6f49cc5800bff7879884466edba1f6fef8623bb7448832c # expected output similat to this
OK a0247996af937d9b1ce86cac570b98b629c05c62860c8fd88d922171c141ea6a94a1d2122ba131bdcfa712712b4674be8e332940ade7adccee55a7de7bda0d18 OK 7d3f421e75ca114abcc20b4bed6cb6fc3d430b8c016b00a1d9cb1f14af6f3c342de6a5dd3c42b52de6f49cc5800bff7879884466edba1f6fef8623bb7448832c
OK a0247996af937d9b1ce86cac570b98b629c05c62860c8fd88d922171c141ea6a94a1d2122ba131bdcfa712712b4674be8e332940ade7adccee55a7de7bda0d18
How to download one image from shacache? How to download one image from shacache?
...@@ -67,26 +63,25 @@ How to download one image from shacache? ...@@ -67,26 +63,25 @@ How to download one image from shacache?
The images are downloaded by the SHA512SUM hash of it. Example: The images are downloaded by the SHA512SUM hash of it. Example:
::
sha512sum output-centos72/packer-centos72.gz sha512sum output-centos72/packer-centos72.gz
a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18 output-centos72/packer-centos72.gz a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18 output-centos72/packer-centos72.gz
wget http://download.shacache.org/a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18 wget http://download.shacache.org/a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18
# if you want a good filename use '-O centos.gz' # if you want a good filename use '-O centos.gz'
# them you can gunzip # them you can gunzip
gunzip centos.gz gunzip centos.gz
How to run locally a downloaded image? How to run locally a downloaded image?
-------------------------------------- --------------------------------------
In order to test one image (after unzip), you can run: In order to test one image (after unzip), you can run:
::
bash util/quick-test IMAGE.qcow2
# or if you want use X and a monitor you can do:
bash util/quick-test packer-centos72 "-display sdl"
bash util/quick-test IMAGE.qcow2
# or if you want use X and a monitor you can do:
bash util/quick-test packer-centos72 "-display sdl"
Extra Extra
----- -----
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment