RO unit with a float switch to control operation. Assuming everything is in good working order, the RO will run until the barrel fills up, tripping the float switch. This will shut down the RO unit. The sump pump was probably intended to transfer the water to a mixing station for saltwater.
Just a head's up: that garbage can most likely isn't food grade. I'd be worried about the plastic leaching into whatever water you store there.