Videos
I think the link from Napoleon Wilson provides valuable insight. Another consideration is the Indominus' intelligence. As it was already mentioned the canon establishes the Velociraptor as an intelligent creature that communicates and coordinates to attack prey, the T-Rex sees no such treatment. In the first film these two species are juxtaposed with one another to demonstrate the raw intelligence of the raptor which infers the T-Rex is in some way intellectually inferior. The T-Rex is a doer, not a thinker; brute not brain.
The Indominus is also hyper intelligent, perhaps moreso than the raptors themselves. The creature could know that the raptors are more able and more willing to follow commands, where the T-Rex might not listen or might not even be at the capacity to communicate with it.
Why didn't the Indominus Rex eat the velociraptors?
This could just be the relative levels of intelligence between the raptors and the T-Rex, as Josh said, but I think there's a bit more to it than that. Not only are they shown to be highly intelligent, but they're shown to be social pack creatures. They live and hunt and work together, they're not intended to be alone.
In addition to that, the velociraptors in Jurassic World are B, C and D; Owen is/was the alpha (A). They're already primed to be followers, not leaders, so they'll readily submit to the Indominus Rex, which is intelligent enough to realise their potential as allies rather than food (or sport).
Also, given the vast difference in size, the velociraptors aren't going to be depriving the Indominus Rex of food to a huge extent. It's already killing far more than it needs to in order to survive, so the small amount that the raptors will consume won't be noticed.
Why didn't it try to ally with the Tyrannosaurus Rex?
Again, this could just be the relative levels of intelligence. However, even if they're capable of communicating, the T-Rex is a much larger threat to the Indominus Rex (as seen at the end of the movie), and is not a social pack creature. It's not going to just readily submit to be a follower; there's going to be competition primarily for dominance, but also for food. Best to just eliminate the competition straight away.
Which brings us to...
Why did the Indominus Rex eat its sibling?
I've kind of covered all of the likely reasons already, but I'll list them again:
Competition: Its sibling will be competing for dominance and for food. Another Indominus Rex is by far the largest threat to the Indominus Rex out of all the dinosaurs at Jurassic World.
Food: Rommel suggested in his answer that it may have just been hunger. I think this is the least likely explanation, or at least its not the primary motivation, but it is a possibility. The amount the dinosaurs are fed isn't shown in the movies, but from what we do see it didn't really seem like they were fed that much considering their size.
Sport: Owen explicitly states that, once the Indominus Rex has escaped from its enclosure, it is killing for sport. There's no reason to think that wouldn't have started earlier in its development, and when you have two creatures that kill in large part just because they enjoy it sharing the same enclosed space, one of them is going to end up dead eventually.
Pretty much the title. Is there a specific fence I need to keep it in the enclosure? Any specific or special enclosure needs? He keeps eating people and theyβre getting pretty pissed lol
I do not believe we can definitively answer this question. It refers to an extinct animal used in a movie for a specific plot reason: to resolve the conflict at the climax of the movie. We do not know how Mosasaurus would react in either of its feeding scenarios presented in the movie.
However, we can apply logic and see where it takes us.
The amphitheater scene
During this scene, the announcer specifically mentions the dinosaur is shy and may not be hungry. Most predators across the entire animal kingdom are more aggressive when hungry. While it may not be exactly safe to approach a satiated predator such as a wild lion, it is certainly more dangerous to approach one that is very hungry.
If the animal handlers at Jurassic World keep the Mosasaurus well-fed, it should keep it relatively more docile.
Also keep in mind that this is a purely aquatic predator that lives entirely in water: going after "land meat" is possible, but unlikely. While it is relatively easy for e.g. bears to pick fish from a stream, it would be more difficult for e.g. a shark to come on shore and eat a human.
Finally, there is a size consideration. Mosasaurus could flop into the stands, but those seats are set back a bit from the water, and humans are much smaller than it. Why go after tiny prey that is difficult to reach when larger prey is practically hand-fed on a regular basis?
The boardwalk scene
At the end of the movie, Indominus and T-Rex are fighting and eventually they back Indominus up against the fence by the water.
Three factors are different here compared to earlier in the movie:
Mosasaurus is likely to be hungrier. The panic in the park meant it may not have eaten in hours. A carnivore that size must each a substantial amount of meat just to have enough energy to live. It is likely to be on the more aggressive end of its behavior scale.
The prey is closer. Remember, they are at the boardwalk now, and Indominus is up against the fence. Earlier, the humans were sitting further away from the fence. This means that the prey will be easier to see: an object sticking up from the boardwalk is easier to see from underwater than prey further away, blending into the shape of the amphitheater.
The prey is larger. One human might be a tiny snack, but Indominus is a full meal. If Mosasaurus is hungry (see point 1), this would clinch the deal. This also makes the prey easier to see: for a large animal such as Mosasaurus, the Indominus is easier to see from underwater than humans are. This would be similar to how a dog is easier for a human to see than a hundred ants.
Conclusion
Based on common-sense and logic, it is reasonable to assume that Mosasaurus would largely ignore the human audience while attacking Indominus.
A mostly satiated Mosasaurus would ignore tiny prey set back from the water, while attacking the large prey standing on the edge of the water when hungry.
It was hungry, with a large, loud, distract, and injured prey within reach.
It has gone at least half a day without being fed.
The Indominus Rex is louder by multiple orders of magnitude than the crowd, a single point of sound, and likely in the right hearing range of the Mosasaurus.
The Indominus is distracted. Ambush predators take their prey's attention in mind when deciding when and how to attack. A wary animal is harder to attack then one with its defences down. Indominus was not paying attention to the water, giving the Mosasaurus opportunity to attack.
Indominus is Injured and bleeding. The scent of blood would tempt the Mosasaurus greatly.
Most Importantly, it wouldn't attack the crowd, when it has a free meal dangling right above it. It goes for the easy kill.
Keep in mind that all dinosaurs at Jurassic Park/World have been genetically engineered for fun and profit. They don't look like they used to, and were changed to fit public (mis)conceptions about how they are supposed to look and act. The Mosasaurus in Jurassic World is freaking huge compared to a natural one. The largest real one has a mouth a bit longer than a human, roughly 10 feet long, while the movie one is as long as a Great White Shark, typically 20 feet long. And it may have habits that are not common for a real one. Scientific belief is that it ate other marine dinosaurs, not ambush land ones. See https://en.wikipedia.org/wiki/Mosasaurus