Put the onions and peppers in the work bowl of a food processor and process until coarsely chopped. With the motor running, add the remaining ingredients one at a time, processing until smooth. The sofrito will keep in the refrigerator for up to 3 days; it also freezes beautifully.