What is the meaning of the word "trooper"?

Definitions:

  1. a person who is reliable, uncomplaining, and hard working copy to clipboard noun
    • They were a real trooper for getting that work done. copy to clipboard
  2. an actor who travels around the country presenting plays copy to clipboard noun
    • The understudy left to become a trouper with a traveling show. copy to clipboard