Skip to content

systelab/discovery-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Codacy Badge Known Vulnerabilities

Diacovery Service

Eureka is a REST (Representational State Transfer) based service that is primarily used in the AWS cloud for locating services for the purpose of load balancing and failover of middle-tier servers. Check the repository Eureka from Netflix for more information.

Getting Started

To get you started you can simply clone the discovery-service repository and install the dependencies:

Prerequisites

You need git to clone the discovery-service repository.

You will need Java™ SE Development Kit 8 and Maven.

Clone discovery-service

Clone the discovery-service repository using git:

git clone https://github.com/systelab/discovery-service.git
cd discovery-service

Install Dependencies

In order to install the dependencies and generate the Uber jar you must run:

mvn clean install

Run

To launch the server, simply run with java -jar the generated jar file.

cd target
java -jar discovery-service-1.0.jar

Or with the maven plugin:

mvn spring-boot:run

Head to http://localhost:8761 in order to see the Eureka Daskboard

Docker

Build docker image

There is an Automated Build Task in Docker Cloud in order to build the Docker Image. This task, triggers a new build with every git push to your source code repository to create a 'latest' image. There is another build rule to trigger a new tag and create a 'version-x.y.z' image

You can always manually create the image with the following command:

docker build -t systelab/discovery-service . 

Run the container

docker run -p 8761:8761 systelab/discovery-service

The app will be available at http://localhost:8761

About

Eureka service registry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published