Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wlanboy/serviceregistry

Spring Framework based Service Registry
https://github.com/wlanboy/serviceregistry

deprecated docker spring-boot spring-cloud-eureka

Last synced: 5 days ago
JSON representation

Spring Framework based Service Registry

Awesome Lists containing this project

README

        

# ServiceRegistry [DEPRECATED]
Spring Framework based Service Registry - DO NOT USE THIS ANY LONGER

Based on https://projects.spring.io/spring-cloud/ and https://github.com/spring-cloud-samples/eureka.

## Dependencies
At least: Java 11 and Maven 3.5

## Build Service Registry
mvn package -DskipTests=true

## Run Service Registry
### Environment variables
export DOCKERHOST=192.168.0.100

#### EUREKA_ZONE
Default value: http://127.0.0.1:8761/eureka/
Defining all available Eureka Instances.

### Windows
java -jar target\serviceregistry-0.1.1-SNAPSHOT.jar

### Linux (service enabled)
./target/serviceregistry-0.1.1-SNAPSHOT.jar start

## Docker build
docker build -t serviceregistry:latest . --build-arg JAR_FILE=./target/serviceregistry-0.1.1-SNAPSHOT.jar

## Docker run
docker run --name serviceregistry -m 512M -d -p 8761:8761 -v /tmp:/tmp -e DOCKERHOST=$DOCKERHOST -e EUREKA_ZONE=http://$DOCKERHOST:8761/eureka/ serviceregistry:latest

## Docher Hub
https://hub.docker.com/repository/docker/wlanboy/serviceregistry

## Check Service Registry
http://127.0.0.1:8761/