Skip to content

Commit

Permalink
[FIX] CommunityService แก้ไข Build docker production
Browse files Browse the repository at this point in the history
  • Loading branch information
wdrdres3qew5ts21 committed Nov 12, 2019
1 parent 62be818 commit 4ef04cf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions Microservice/CommunityService/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM openjdk:11-slim
WORKDIR /app
ENV spring.profiles.active=production
ENV spring_cloud_config=https://www.meetu-milktea.tk:8585
ADD target/communityservice-0.0.1-SNAPSHOT.jar .
ADD meetu-firebase-key.json .
#ENV spring_cloud_config=
Expand Down
2 changes: 1 addition & 1 deletion Microservice/CommunityService/build.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mvn clean package &&docker build -t linxianer12/communityservice . && docker push linxianer12/communityservice
mvn clean package &&docker build -t linxianer12/communityservice:latest . && docker push linxianer12/communityservice:latest
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ public interface UserCommunityRepository extends MongoRepository<UserCommunity,
public UserCommunity findByUidAndCommunityId(String uid, String communityId);

public void deleteById(String communityId);

public void deleteByCommunityId(String userCommunityId);

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spring:
cloud:
config:
request-read-timeout: 10000
uri: http://localhost:8585
uri: ${spring_cloud_config:http://localhost:8585}
retry:
max-attempts: 8
max-interval: 2000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class EventService {
@Value("${community.service}")
private String COMMUNITYSERVICE_URL;

private final String eventsIndex = "events";
private final String eventsIndex = "meetu.events";

public void pushNotificationToAllUserWhenEventCreate(String eventName, String eventDetail) {
// Create a list containing up to 100 messages.
Expand Down
3 changes: 2 additions & 1 deletion metricbeat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ docker run -d\
-E output.elasticsearch.hosts=["elasticsearch1:9200"]



docker run -d \
--network=meetu_elastic\
-p 8200:8200\
--user=apm-server \
--volume="$(pwd)/apm-server.docker.yml:/usr/share/apm-server/apm-server.yml:ro" \
docker.elastic.co/apm/apm-server:7.2.1 \
docker.elastic.co/apm/apm-server:7.4.0 \
--strict.perms=false -e \
-E output.elasticsearch.hosts=["elasticsearch1:9200"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
multiple
sm6
xs2
required
>
<template v-slot:selection="data">
<v-chip :selected="data.selected">
Expand Down

0 comments on commit 4ef04cf

Please sign in to comment.