You should probably be commenting here: Migrating from bbPress WordPress plugin to Discourse. I don’t quite understand how those instructions can work.
You might check out How to use the bbpress import script - or any other import script with mysql dependency, which will at least get you into a container where the script is.