First, you need to download it to your environment. At the time of writing, GlassFish 5 is the only Java EE 8 server that has been released.
To download it, just visit https://javaee.github.io/glassfish/download. This recipe in based on version 5 (Java EE 8 compatible).
Wherever possible, we will focus on doing the tasks using the configuration files.