20 October 2015
Tags: java |
Some time ago I had to run Netflix Eureka server (to be more specific itwas version 1.1.151) not using Spring Boot.
There were several ways:
use Jetty runner.
The idea of the jetty-runner is extremely simple – run a webapp directly from the command line using a single jar and as much default configuration as possible. Of course, if your webapp is not so straightforward, the jetty-runner has command line options which allow you to customize the execution environment.
use Webapp Runner.
Webapp runner is designed to allow you to launch an exploded or compressed war that is on your filesystem into a tomcat container with a simple java -jar command.
I decided to go with Webapp Runner.
So, here is the list of steps:
$ cat runme.bat java -jar webapp-runner-184.108.40.206.jar eureka.war --path /eureka --port 4000
Local directory should have the next files/folders:
$ dir /b eureka-server-1.1.151.war eureka.war runme.bat target/ webapp-runner-220.127.116.11.jar