I’ve created a simple base project for creating gazebo plugins EmmanuelMess/gazebo-plugin-example. It should work out of the box on anything that runs rocker (or docker if you don’t need the gui).
If you see any issues, do comment and I’ll try to look into it.