DEV Community

Discussion on: What new language/tool/etc. have you been meaning to learn but haven't gotten around to yet?

dallgoot profile image
dallgoot • Edited on

i suggest you go the Docker route : Ansible comes after basic system needs.
Those basic system needs are simple (since you use composer i'm assuming PHP) :

  • http server
  • PHP
  • some database

These can be quickly set up via a docker-compose file and started/stopped easily (once every config is done)
Ansible at the moment will only add a layer of complexity that, i think, you don't need at first.
All packages are configured/set up through the dockerfile(s) once and if needed you can enter a bash/sh console on each container.
I recommend you start with the more "complete" images (they have everything needed system wise) and then go for smaller images that fits your needs later for less memory/more performance.


samuraiseoul profile image
Sophie The Lionhart

I get what you mean there, but I'm not talking about setting up deployment servers. I'm talking about setting up my local environment. Like I buy a new computer or wipe my hard drive or something and want to get up and running again. Things like installing my IDEs, setting up my .bashrc, installing things like spotify or slack, and other utilities like gedit or 'bat' or 'exa'.

For the projects I will use docker for sure. I don't think I can set up my local machine using docker though can I?

Also if not, I actually decided to go the Ansible route so far and have it almost working already. Just having some ppa issues and also an issue with snaps on crostini that it was too late to try and fix when I encountered it last night.

Thread Thread
dallgoot profile image

you're right Docker means containers not your host machine so its only use, for your needs is the environment for code.

Setting up your OS is another topic and i believe there (probably) are tools to customize the distro you are using.

BUT going with Ansible for that is a good idea :)