Skip to content

Commit

Permalink
Merge pull request #14 from coderqianlq/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
coderqianlq authored Dec 16, 2018
2 parents 991dd04 + feb7004 commit ac19859
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions config-coderqian/service-customer-mysql-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mysql=mysql-dev
1 change: 1 addition & 0 deletions config-coderqian/service-customer-mysql-master.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mysql=mysql-master
1 change: 0 additions & 1 deletion config-coderqian/service-customer-mysql.properties

This file was deleted.

1 change: 1 addition & 0 deletions config-coderqian/service-customer-redis-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
redis=redis-dev
1 change: 1 addition & 0 deletions config-coderqian/service-customer-redis-matser.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
redis=redis-master
1 change: 0 additions & 1 deletion config-coderqian/service-customer-redis.properties

This file was deleted.

5 changes: 3 additions & 2 deletions config-server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ server.port=1201

spring.cloud.config.server.git.uri=https://github.com/coderqianlq/spring-cloud-cli/
spring.cloud.config.server.git.search-paths=config-coderqian
spring.cloud.config.server.git.username=
spring.cloud.config.server.git.password=
spring.cloud.config.server.git.username=1242202279@qq.com
spring.cloud.config.server.git.password=qlq1995/

# spring.cloud.config.server.git.repos.special.pattern=

18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Dalston.RELEASE</spring-cloud.version>
<docker.image.prefix>qianlq</docker.image.prefix>
</properties>

<dependencies>
Expand Down Expand Up @@ -64,6 +65,23 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
<dockerDirectory>src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion service-customer/src/main/resources/bootstrap.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spring.cloud.config.profile=dev
spring.profiles.active=dev

# 指定具体的配置文件
# spring.cloud.config.name=service-customer-mysql,service-customer-redis
spring.cloud.config.name=service-customer,service-customer-mysql,service-customer-redis
spring.cloud.config.uri=http://127.0.0.1:1201/

spring.zipkin.base-url=http://127.0.0.1:9411
Expand Down

0 comments on commit ac19859

Please sign in to comment.