Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.package
Commits
2ca9d77f
Commit
2ca9d77f
authored
Jul 29, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: Fix style of documentation
parent
f53ccc3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
30 deletions
+25
-30
packer/README.md
packer/README.md
+25
-30
No files found.
packer/README.md
View file @
2ca9d77f
...
...
@@ -10,17 +10,17 @@ How to build one VM?
1) Install Packer locally by https://www.packer.io/downloads.html, like (exemple):
::
mkdir /opt/packer/
cd /opt/packer/
wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
unzip packer_0.10.1_linux_amd64.zip
mkdir /opt/packer/
cd /opt/packer/
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)::
::
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
have to edit the json. Replace '"headless": true' by '"headless": false'
...
...
@@ -30,9 +30,7 @@ How to build all VMs?
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?
--------------------------
...
...
@@ -44,9 +42,7 @@ eventually, update shacache/shacache.cfg.
BE CAREFULL, every time you run this command you upload the files to shacache,
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?
----------------------------------------------
...
...
@@ -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
are uploaded to shacache.
::
bash util/testupload.sh
# expected output similat to this
OK 7d3f421e75ca114abcc20b4bed6cb6fc3d430b8c016b00a1d9cb1f14af6f3c342de6a5dd3c42b52de6f49cc5800bff7879884466edba1f6fef8623bb7448832c
OK a0247996af937d9b1ce86cac570b98b629c05c62860c8fd88d922171c141ea6a94a1d2122ba131bdcfa712712b4674be8e332940ade7adccee55a7de7bda0d18
bash util/testupload.sh
# expected output similat to this
OK 7d3f421e75ca114abcc20b4bed6cb6fc3d430b8c016b00a1d9cb1f14af6f3c342de6a5dd3c42b52de6f49cc5800bff7879884466edba1f6fef8623bb7448832c
OK a0247996af937d9b1ce86cac570b98b629c05c62860c8fd88d922171c141ea6a94a1d2122ba131bdcfa712712b4674be8e332940ade7adccee55a7de7bda0d18
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:
::
sha512sum output-centos72/packer-centos72.gz
a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18 output-centos72/packer-centos72.gz
wget http://download.shacache.org/a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18
# if you want a good filename use '-O centos.gz'
# them you can gunzip
gunzip centos.gz
sha512sum output-centos72/packer-centos72.gz
a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18 output-centos72/packer-centos72.gz
wget http://download.shacache.org/a0247991d2122ba131b...BIGHASH...fa712712b4674be8e332940ade7adccee55a7de7bda0d18
# if you want a good filename use '-O centos.gz'
# them you can gunzip
gunzip centos.gz
How to run locally a downloaded image?
--------------------------------------
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
-----
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment