Vagrant VM with ansible provisioning

Discuss the future of Warzone 2100 with us.
Post Reply
Raath
New user
Posts: 4
Joined: 29 Feb 2012, 23:37

Vagrant VM with ansible provisioning

Post by Raath »

I had a few spare moments this afternoon and with the release of ansible 2 put together a quick Vagrant VM provisioner.

This vagrant script will create a standard headless ubuntu 14.04 VM with 2 gig ram and 2 cores, install all the required libraries to compile warzone2100 for linux environments then create the .deb files with checkinstall.

I'll add an rpm builder into the mix as well if things are slow tomorrow.

Usage instructions are in the readme.md

https://github.com/aidygus/vagrant-warzone2100
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Vagrant VM with ansible provisioning

Post by vexed »

Nice. :)

BTW, master is development branch, 3.1 is release branch, and we tag releases.

Oh, and also, just doing ./configure && make will produce a "debug" build, not meant for releases, since it will have 0 optimizations done.
Something along the lines of ./configure --disable-debug CFLAGS="-O2 -gstabs -g -g3" CXXFLAGS="-O2 -gstabs -g -g3" is needed for releases.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Raath
New user
Posts: 4
Joined: 29 Feb 2012, 23:37

Re: Vagrant VM with ansible provisioning

Post by Raath »

Thanks for that information. I think I might add a separate builder playbook for this.

It could be run from the console with:

vagrant provision --provision-with build
Post Reply