What is the best option (hardware) to host Jenkins. I am willing to use it for open-source and my own needs in local network. Aspects as security, complexly etc. are not considered. I do not see Travis CI, CircleCI or simply using any SaS to host Jenkins as an alternative option.
E.g. I used raspberry pi 4 with 4Gb and Jenkins as Docker Container (wouterds/rpi-jenkins). It did not worked well(slow, laggy).
containers with jenkins master and slaves are a very good option as you can programatically control upgrades and operations and you are totally independent from the hosting layer. You can build everything on you laptop and move it to cloud or VM within minutes.
There is no universal best solution, and that's why many people love Jenkins as it can adapt to any needs.
Questions:
what load will you have during build time (what code do you build) ?
do you need it up all the time / can you afford to shut it down outside office hours ?
do you need to scale up/down the allocated resources often ?
I use for my personal project a google GCP VM instance that hosts the master and two slaves (one for java and one for mobile apps) . I use docker-compose to control the configuration of the containers. For data persistence, I use a bucket where I copy with a job the whole home folder (not the build workspace). The whole thing fits in the free layer of GCP and I am sure AWS too.