Build scripts for cobox-os. VM and ARM.

cobox.config 903B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env zsh
  2. blend_name="cobox"
  3. blend_vers="1.0"
  4. # Size of the base image in MB
  5. size=4096
  6. # Cache the stage4 tarball during build
  7. TAR_STAGE4=true
  8. # Extra packages that will be installed in stage4 bootstrap using apt
  9. extra_packages+=(
  10. build-essential
  11. libsodium-dev
  12. apt-transport-https
  13. fuse
  14. haveged
  15. zsh
  16. net-tools
  17. )
  18. # nodejs data
  19. node_ver="11.x"
  20. node_repo_key="https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
  21. node_repo_apt="deb https://deb.nodesource.com/node_${node_ver} stretch main"
  22. # Separate with spaces
  23. #cobox_sw_npm="cobox-group cobox-cli"
  24. cobox_sw_npm="cobox-group"
  25. if [ -n "$armsdk_version" ]; then
  26. image_name="${blend_name}-${blend_vers}-${arch}-${device_name}-$(date '+%Y%m%d')"
  27. elif [ -n "$vmsdk_version" ]; then
  28. image_name="${blend_name}-${blend_vers}-${arch}-$(date '+%Y%m%d')"
  29. vm_name="${blend_name}-${blend_vers}-${arch}-virtual-$(date '+%Y%m%d')"
  30. fi