One of the things I needed to do was setup a VM on my macbook. This was my first time doing this without having anyone around to hold my hand. Honestly, I was surprised. It was way less difficult than I expected.
First thing I did was to download the most recent version of Virtual Box and installed that.
My old environment used Vagrant to easily configure the actual VM, so it was time to dig into that. Again, not difficult at all. I ended up going with bento/amazonlinux2 as that mirrors what I've already spun up in EC2.
Then, just like in EC2 I needed to install nginx and php7.4 from amazon-linux-extras. I've done that a few times now, so not a large hurdle. I'm pretty sure that at some point I'm going to need to get additional php modules, but that's a headache for another day.
The next bit was a little tricky. I've already stubbed out the first service I'm going to build in my github, so now I needed to pull that down to my local and wire it up so that the VM acts as a proper http server for that service.
Luckily for me, I happened to have some old nginx and php-fpm configuration files I could reference. I have NO idea how long this step would have taken if I'd not had those files to reference.
Anyhow, a couple of quick edits later and I now have a functional http service running inside the VM on my local machine.
I still have a couple more things to do before I can really dig into developing the service (which I've decided to name 'Mabel'), but it's nice to know that I can still get things done when I set my mind to it.
No comments:
Post a Comment