Heat oil in a skillet and add diced onion and crushed red pepper flakes. Cook for five minutes, stirring often. Add minced garlic and cook for a minute. Add the tomatoes and cook for 20 minutes, while stirring. Season it with salt, pepper and a bit of sugar. Make wells in the tomatoes with back of the spoon. Crack an egg into each well and cover with a lid. Cook until the egg whites are set and the yolks are still soft. Season the eggs with salt and pepper, to taste. Top with slices of brie and fresh parsley. Serve with grilled sourdough bread.