Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.
/ erpnext-vm Public archive

Configuration for the Build Server that generates ERPNext VMs and Vagrant Box

Notifications You must be signed in to change notification settings

frappe/erpnext-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS REPO IS DEPRECATED

If you wish to build the ERPNext VM images for the current versions, please check out the bench repository for more information.

ERPNext VM Builder

Steps to build a vm image

  • Install VirtualBox
  • Download and place a base.ova ubuntu base image in the current directory.
  • Download packer binary from and place in the current directory
  • ./packer build vm.json builds a new Production vm.
  • ./packer build vm-develop.json builds a new Development vm and a Vagrant Box.

How it works

Packer imports the base image in a virtual machine and boots it. It runs the following

  • scripts/install_ansible.sh sets up ansible on the vm.
  • The ansible/vm.yml playbook sets up the dependencies, installs a bench and sets up a site. It also sets up production if needed.
  • scripts/set_message.sh sets welcome message (with update instructions) in the vm.
  • scripts/zerofree.sh writes zero to all the free space in the disk, it shrinks the disk image.
  • Vagrantfile is the configuration that is used for the Vagrant Box

For a build server

Running the build.py script builds the VMs and puts them in ~/public. It also creates md5 hash files for every VM created.

About

Configuration for the Build Server that generates ERPNext VMs and Vagrant Box

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •