How to build a CES-image
Requirements
gitinstalledpackerinstalled (see packer.io)VirtualBox,QEMUand/orVMwareinstalled
1. Check out the ecosystem repository
-
git clone https://github.com/cloudogu/ecosystem.git2. Build the image(s) with packer
cd <ecosystem-path>/images/prod/packer init .-
packer build -var "timestamp=$(date +%Y%m%d)" prod.pkr.hcl- Builds all images for production
- To get only a specific build for one of the hypervisors, use the
--only=<image-type>parameter. With it, the image type can be configured tovirtualbox-iso.ecosystem-virtualbox,qemu.ecosystem-qemuorvmware-iso.ecosystem-vmware. - The default user is
ces-adminwith passwordces-admin(will be changed in setup process)
-
cd <ecosystem-path>/images/dev && packer init . && packer build dev.pkr.hcl- Builds an image for development
-
Adds development tools like
htopandjqto the the vm. A full list can be found in the following files: - The default user is
vagrantwith passwordvagrant
- If you are using a VirtualBox version below 7 to build the images, you have to set the additional build parameter
virtualbox-version-lower-7, e.g.:packer build -var virtualbox-version-lower-7=true dev.pkr.hcl
3. Wait
- The image build process lasts around 20 minutes, depending on your hardware and internet connection speed.
4. Finish
- The image(s) can be found in
<ecosystem-path>/images/dev/buildand<ecosystem-path>/images/prod/output-*.