Create cloud cli command.
Downloads and launches eureka,kafka,configserver,h2 server & hystrix dashboard.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2013-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.cloud.launcher.configserver;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.config.server.EnableConfigServer;
|
||||
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@EnableConfigServer
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication
|
||||
public class ConfigServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ConfigServerApplication.class, args);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
spring:
|
||||
application:
|
||||
name: configserver
|
||||
profiles:
|
||||
active: native
|
||||
cloud:
|
||||
config:
|
||||
server:
|
||||
bootstrap: true
|
||||
native:
|
||||
search-locations: classpath:/launcher/, file:./launcher/
|
||||
|
||||
server:
|
||||
port: 8888
|
||||
|
||||
management:
|
||||
context-path: /admin
|
||||
|
||||
eureka:
|
||||
instance:
|
||||
status-page-url-path: ${management.context-path}/info
|
||||
|
||||
info:
|
||||
artifactId: @project.artifactId@
|
||||
description: @project.description@
|
||||
version: @project.version@
|
||||
@@ -0,0 +1,28 @@
|
||||
info:
|
||||
description: Spring Cloud Launcher
|
||||
|
||||
eureka:
|
||||
client:
|
||||
instance-info-replication-interval-seconds: 5
|
||||
initial-instance-info-replication-interval-seconds: 5
|
||||
serviceUrl:
|
||||
defaultZone: http://localhost:8761/eureka/
|
||||
|
||||
endpoints:
|
||||
restart: enabled
|
||||
|
||||
ribbon:
|
||||
ConnectTimeout: 3000
|
||||
ReadTimeout: 60000
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:h2:tcp://localhost:9096/~/launcher
|
||||
|
||||
logging:
|
||||
level:
|
||||
kafka: WARN
|
||||
org.apache.zookeeper: WARN
|
||||
org.apache.zookeeper.ClientCnxn: ERROR
|
||||
org.apache.kafka: WARN
|
||||
org.I0Itec: WARN
|
||||
Reference in New Issue
Block a user