Sorry, have typed too fast :-)

 "post-processors": [

    {

    "type": "shell-local",

    "inline": [

      "/usr/bin/glance image-download  *snapshotv2016* --file /tmp/
*tempImage.*qcow2

      "/usr/bin/qemu-img convert -p -c -O qcow2  /tmp/*tempImage.*qcow2 
*imagecompressed01*.qcow2",

      "/usr/bin/glance image-create --name *final_image *--file 
*imagecompressed01*.qcow2 --disk-format qcow2 --container-format bare"

      ]

    }]


El viernes, 16 de diciembre de 2016, 17:47:43 (UTC+1), Lorena Lobato 
escribió:
>
> Hello Stacy,
>
> Sure. 
>
>    "post-processors": [
>
>     {
>
>     "type": "shell-local",
>
>     "inline": [
>
>       "/usr/bin/glance image-download  *snapshotv2016* --file /tmp/
> *tempImage.*qcow2
>
>       "/usr/bin/qemu-img convert -p -c -O qcow2  *tempImage* 
> *imagecompressed01*.qcow2",
>
>       "/usr/bin/glance image-create --name *final_image *--file 
> *imagecompressed01*.qcow2 --disk-format qcow2 --container-format bare"
>
>       ]
>
>     }]
>
> Hope it helps :-)
>
> Cheers,
>
> Lorena
>
> El miércoles, 14 de diciembre de 2016, 0:44:54 (UTC+1), Stacy Véronneau 
> escribió:
>>
>> Hello Lorena,
>>
>> Could you post your post-processor syntax and the script to download, 
>> convert, compress and upload in Glance?
>>
>> Thank you!
>>
>> /Stacy
>>
>>
>> On Monday, August 8, 2016 at 10:36:19 AM UTC-4, Lorena Lobato wrote:
>>>
>>> Hello,
>>>
>>> Fixed by uploading packer to 0.10.1 version and using post-processor for 
>>> OpenStack (which is valid with this version). In this post-processor I 
>>> called to a script which was downloading the "snapshot", convert it to 
>>> qcow2 (and compress it) and upload it again to glance.
>>>
>>> For the record, only using OS builder.
>>>
>>> Thanks
>>> Lore
>>>
>>> El lunes, 1 de agosto de 2016, 9:59:43 (UTC+2), Lorena Lobato escribió:
>>>>
>>>> Hello,
>>>>
>>>> Is it possible to create an OS image already compressed? All the tests 
>>>> that I was doing is always in raw format. We are not interested in 
>>>> compress 
>>>> the image in the post-processor. And we need to compress somehow the image 
>>>> since it is too big (impossible to reduce it in our case)
>>>>
>>>> Could I use "qemu" builder and "OS" builder in the same template to 
>>>> carry out this approach?
>>>>
>>>> Thanks so much in advance
>>>> Regards
>>>> Lorena
>>>>
>>>>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/98d66203-8a71-41c4-bc3f-7423fb4513fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to