Skip to content

Commit

Permalink
refactor and modify configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
吴晨 committed Oct 16, 2020
1 parent 160acb4 commit d41f903
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 16 deletions.
6 changes: 0 additions & 6 deletions doc/Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.cntryroa</groupId>
<artifactId>envoy_loadbalance</artifactId>
<version>1.0-SNAPSHOT</version>
<name>envoy Tapestry 5 Application</name>
<name>envoy loadbalance</name>
<properties>
<java.version>1.8</java.version>
<spring-boot-version>2.1.3.RELEASE</spring-boot-version>
Expand Down Expand Up @@ -92,7 +92,7 @@
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.cntryroa.App</mainClass>
<mainClass>com.cntryroa.envoylb.App</mainClass>
</manifest>
</archive>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cntryroa;
package com.cntryroa.envoylb;

import io.grpc.Server;
import io.grpc.ServerBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cntryroa;
package com.cntryroa.envoylb;

import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cntryroa;
package com.cntryroa.envoylb;

import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cntryroa;
package com.cntryroa.envoylb;

import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
Expand Down
4 changes: 1 addition & 3 deletions src/main/proto/greeter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ option objc_class_prefix = "WY";

package onlytest;

//定义服务
service Greeter {
//注意:这里是returns 不是return
rpc TestSomeThing (TestRequest) returns (TestResponse) {
}
}
//定义消息类型

message TestRequest {
string name = 1;
}
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM registry.cntryroa.com/javaruntime:5.1.0

COPY lib /opt/workdir/lib
COPY envoy_loadbalance-1.0-SNAPSHOT.jar /opt/workdir

CMD ["/jre1.8.0_202/bin/java","-jar","envoy-1.0-SNAPSHOT.jar"]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: grpcserver
image: registry.aps.datacanvas.com:5000/aps/test/envoy:0.1.0
image: registry.cntryroa.com:5000/aps/test/envoy:0.1.0
imagePullPolicy: Always
ports:
- containerPort: 35001
Expand Down

0 comments on commit d41f903

Please sign in to comment.