How is self discipline earned?

Can you answer this question?