Build environment /Docker

I've been a programmer and using Docker for many years so detail OK. But I've never developed OpenWRT so apologies for the newbie questions ;-).
I develop normally using Ubuntu/WSL2 and tried to follow the instructions for setting up an OpenWRT build environment but when I ran the first make... command it claimed there were a number of components, such as working-gcc missing.
So

  1. How do I figure out what these missing components are?
  2. Does it make sense to Dockerise my build environment to avoid polluting other dev work I might be doing?

Thanks.

were you following https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem ?

Nope, I had not found that page. I'll try and find the page when I'm home tonight but the one I was following had two shell scripts, one of which updated repository info and the second supposedly installed packages. I'll follow your link and see how I get on - thanks.

here's the official one - https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem.

Yep, that's the one that didn't seem to work. Or perhaps it almost did but I don't understand the process enough to solve any slight errors in it.

nor did you post any (errors), so ¯_(ツ)_/¯....