Riolu eggs come from a specific NPC, and there's a bit of preparation involved.
Go to Solaceon Town and ride your bike at full speed up and down the path just below. Keep at it for a few lengths and the egg will hatch — cycling is the standard way to rack up the steps an egg needs.
Simple, but the party-slot requirement catches out a lot of people who arrive with a full team.