Initial commit
This commit is contained in:
		
							
								
								
									
										4
									
								
								base/eureka/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								base/eureka/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
FROM openjdk:8-jdk-alpine
 | 
			
		||||
ARG JAR_FILE=target/*.jar
 | 
			
		||||
COPY ${JAR_FILE} app.jar
 | 
			
		||||
ENTRYPOINT ["java","-jar","/app.jar"]
 | 
			
		||||
							
								
								
									
										15
									
								
								base/eureka/HELP.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								base/eureka/HELP.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
# Getting Started
 | 
			
		||||
 | 
			
		||||
### Reference Documentation
 | 
			
		||||
For further reference, please consider the following sections:
 | 
			
		||||
 | 
			
		||||
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
 | 
			
		||||
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.2.5.RELEASE/maven-plugin/)
 | 
			
		||||
* [Spring Boot Actuator](https://docs.spring.io/spring-boot/docs/2.2.5.RELEASE/reference/htmlsingle/#production-ready)
 | 
			
		||||
 | 
			
		||||
### Guides
 | 
			
		||||
The following guides illustrate how to use some features concretely:
 | 
			
		||||
 | 
			
		||||
* [Service Registration and Discovery](https://spring.io/guides/gs/service-registration-and-discovery/)
 | 
			
		||||
* [Building a RESTful Web Service with Spring Boot Actuator](https://spring.io/guides/gs/actuator-service/)
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										66
									
								
								base/eureka/pom.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								base/eureka/pom.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,66 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 | 
			
		||||
	<modelVersion>4.0.0</modelVersion>
 | 
			
		||||
	<parent>
 | 
			
		||||
		<groupId>org.springframework.boot</groupId>
 | 
			
		||||
		<artifactId>spring-boot-starter-parent</artifactId>
 | 
			
		||||
		<version>2.2.5.RELEASE</version>
 | 
			
		||||
		<relativePath/> <!-- lookup parent from repository -->
 | 
			
		||||
	</parent>
 | 
			
		||||
	<groupId>com.example</groupId>
 | 
			
		||||
	<artifactId>eureka</artifactId>
 | 
			
		||||
	<version>0.0.1-SNAPSHOT</version>
 | 
			
		||||
	<name>eureka</name>
 | 
			
		||||
	<description>Demo project for Spring Boot</description>
 | 
			
		||||
 | 
			
		||||
	<properties>
 | 
			
		||||
		<java.version>1.8</java.version>
 | 
			
		||||
		<spring-cloud.version>Hoxton.SR3</spring-cloud.version>
 | 
			
		||||
	</properties>
 | 
			
		||||
 | 
			
		||||
	<dependencies>
 | 
			
		||||
		<dependency>
 | 
			
		||||
			<groupId>org.springframework.boot</groupId>
 | 
			
		||||
			<artifactId>spring-boot-starter-actuator</artifactId>
 | 
			
		||||
		</dependency>
 | 
			
		||||
		<dependency>
 | 
			
		||||
			<groupId>org.springframework.cloud</groupId>
 | 
			
		||||
			<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
 | 
			
		||||
		</dependency>
 | 
			
		||||
 | 
			
		||||
		<dependency>
 | 
			
		||||
			<groupId>org.springframework.boot</groupId>
 | 
			
		||||
			<artifactId>spring-boot-starter-test</artifactId>
 | 
			
		||||
			<scope>test</scope>
 | 
			
		||||
			<exclusions>
 | 
			
		||||
				<exclusion>
 | 
			
		||||
					<groupId>org.junit.vintage</groupId>
 | 
			
		||||
					<artifactId>junit-vintage-engine</artifactId>
 | 
			
		||||
				</exclusion>
 | 
			
		||||
			</exclusions>
 | 
			
		||||
		</dependency>
 | 
			
		||||
	</dependencies>
 | 
			
		||||
 | 
			
		||||
	<dependencyManagement>
 | 
			
		||||
		<dependencies>
 | 
			
		||||
			<dependency>
 | 
			
		||||
				<groupId>org.springframework.cloud</groupId>
 | 
			
		||||
				<artifactId>spring-cloud-dependencies</artifactId>
 | 
			
		||||
				<version>${spring-cloud.version}</version>
 | 
			
		||||
				<type>pom</type>
 | 
			
		||||
				<scope>import</scope>
 | 
			
		||||
			</dependency>
 | 
			
		||||
		</dependencies>
 | 
			
		||||
	</dependencyManagement>
 | 
			
		||||
 | 
			
		||||
	<build>
 | 
			
		||||
		<plugins>
 | 
			
		||||
			<plugin>
 | 
			
		||||
				<groupId>org.springframework.boot</groupId>
 | 
			
		||||
				<artifactId>spring-boot-maven-plugin</artifactId>
 | 
			
		||||
			</plugin>
 | 
			
		||||
		</plugins>
 | 
			
		||||
	</build>
 | 
			
		||||
 | 
			
		||||
</project>
 | 
			
		||||
@@ -0,0 +1,15 @@
 | 
			
		||||
package com.example.eureka;
 | 
			
		||||
 | 
			
		||||
import org.springframework.boot.SpringApplication;
 | 
			
		||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
 | 
			
		||||
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
 | 
			
		||||
 | 
			
		||||
@SpringBootApplication
 | 
			
		||||
@EnableEurekaServer
 | 
			
		||||
public class EurekaApplication {
 | 
			
		||||
 | 
			
		||||
	public static void main(String[] args) {
 | 
			
		||||
		SpringApplication.run(EurekaApplication.class, args);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,3 @@
 | 
			
		||||
eureka.client.registerWithEureka = false
 | 
			
		||||
eureka.client.fetchRegistry = false
 | 
			
		||||
server.port = 8761
 | 
			
		||||
							
								
								
									
										3
									
								
								base/eureka/src/main/resources/application.properties
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								base/eureka/src/main/resources/application.properties
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
eureka.client.registerWithEureka = false
 | 
			
		||||
eureka.client.fetchRegistry = false
 | 
			
		||||
server.port = 8761
 | 
			
		||||
@@ -0,0 +1,13 @@
 | 
			
		||||
package com.example.eureka;
 | 
			
		||||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
import org.springframework.boot.test.context.SpringBootTest;
 | 
			
		||||
 | 
			
		||||
@SpringBootTest
 | 
			
		||||
class EurekaApplicationTests {
 | 
			
		||||
 | 
			
		||||
	@Test
 | 
			
		||||
	void contextLoads() {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user