Should I raise river or just call? I just called thinking he'll call my raise or shove if he has JT, fold if he has anything else and call if he has the same straight as me and we'd end up losing more in the rake.

Guess kind of close spot but vs such a loose opponent I wouldn't mind, he definitely has enough of sets/2pairs in his range and which might even pay off according his play-style. But the question is if it's worth while we don't have the total nuts and might just pay the rake (he has also 9x)? And I guess you meant 9T.

Also another question to you if you plan to raise, how much would it be? If you raise small what's the plan if he shoves?

Since he has only about $10 left I might as well make it $15 and call him all in. Even if I min raise to $10 he can shove to $15 and there's no way I can fold then.

Yep, therefore decide either to ship it directly or not. Doesn't make sense to min-raise or anything similar cause it wouldn't make sense to miss the value. If he calls the calls anyways either $10 or $5.