lueschem / edi

Embedded development infrastructure.
https://www.get-edi.io
GNU Lesser General Public License v3.0
39 stars 12 forks source link

Enhance image bootstrap/image lxc commands #17

Closed lueschem closed 6 years ago

lueschem commented 6 years ago

Issue Type

Ideas

In addition to creating an initial image using debootstrap the bootstrap section shall allow the download of a previously generated lxd image (e.g. tool: lxc-download). The image bootstrap and image lxc commands shall then be replaced by a lxc download command.

Big plus: The lxc launch command will then apply the right profiles to the pre-created lxd image.

lueschem commented 6 years ago

More flexible approach:

edi config init hugo debian-stretch-amd64
sudo edi lxc export hugo-develop.yml
--> Move hugo-develop_edicommand_lxc_export.tar.gz to another LXD host!
lxc image import hugo-develop_edicommand_lxc_export.tar.gz --alias hugo-develop
lxc launch hugo-develop hugo
edi lxc configure hugo hugo-develop.yml
lueschem commented 6 years ago

Use the "flexible approach" described in the above comment instead.