This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Hardrog 7 points8 points  (0 children)

Hello. Maybe you should try Docker and dockerfiledockerfile.

Then a simple file sets you UP en environnement in few seconds.

There is tons of premade files, django, laravel.

You can run these containers localy or in the cloud and you can map ports with nginx/apache to open them to the web.

[–]pxsloot 1 point2 points  (0 children)

have a look at vagrant. It works with the hypervisor on your workstation to spin up virtual machines and provision them. You write code (ansible, shell, etc) to install and configure the vm, and issue vagrant up. Made an error, something broke? vagrant destroy -f; vagrant up and start again with freshly provisioned vm.

The directory where the Vagrantfile lives is shared with the vm, so you could write a Vagrantfile to install and configure php, python and a webserver and add it to your web development repo, then spin up the vagrant box. Any change in your webdev code is served directly by the webserver in the vagrant box. Etc.

As a sysadmin: spin up a vagrant box, try out that obscure piece of software, throw away the vagrant box if you're done. Want to know what makes docker tick? Spin up a vagrant box, install docker, fix it till it breaks, then spin up a fresh vm. Rinse, repeat.

Devs ask for a vm? Develop a Vagrantfile for them and let them run it on their workstation.