Development OpenWRT process on desktop Linux

I am looking for possiblity to develop process on desktop linux and later add it to image
I'd like to start from simple UBUS client
My question: it it possible to compile, build and run ubus client on
desktop linux and connect it to rpcd within docker?

I would use a VM...

VM for rpcd and client on linux host (tcp/ip) ?