A foam machine can be cheap to build, or remarkably expensive ... end of a water hose fed by the pump, and feed that in the side too. The bucket is then sealed up with tape and super glue ...