마이크로서비스 컨테이너화 문서 및 코드 추가
This commit is contained in:
4
discovery/Dockerfile
Normal file
4
discovery/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM openjdk:17-ea-11-jdk-slim
|
||||
VOLUME /tmp
|
||||
COPY build/libs/discovery-1.0.jar DiscoveryService.jar
|
||||
ENTRYPOINT ["java", "-jar", "DiscoveryService.jar"]
|
||||
@@ -1,3 +1,27 @@
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.6.6'
|
||||
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
sourceCompatibility = 11.0
|
||||
|
||||
group = 'com.roy'
|
||||
version = '1.0'
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
jar {
|
||||
enabled(true)
|
||||
}
|
||||
|
||||
ext {
|
||||
set('springCloudVersion', "2021.0.1")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-server'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
|
||||
@@ -4,6 +4,10 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: discovery
|
||||
cloud:
|
||||
config:
|
||||
uri: http://config:8888
|
||||
name: user
|
||||
|
||||
eureka:
|
||||
client:
|
||||
|
||||
Reference in New Issue
Block a user