This commit is contained in:
crusader 2018-06-14 16:18:14 +09:00
parent b99bf496f9
commit f6ffe62931
5 changed files with 21 additions and 16 deletions

View File

@ -7,9 +7,7 @@ COPY _docker/config/* /etc/overflow/config/
COPY _docker/bin/* /usr/local/overflow/bin/ COPY _docker/bin/* /usr/local/overflow/bin/
COPY dist/probe_gateway_metric /usr/local/overflow/bin/ COPY dist/probe_gateway_metric /usr/local/overflow/bin/
RUN mkdir -p /etc/overflow/config; \ RUN mkdir -p /var/overflow/logs; \
mkdir -p /usr/local/overflow/bin; \
mkdir -p /var/overflow/logs; \
chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/probe_gateway_metric; chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/probe_gateway_metric;
ENV TINI_VERSION='0.17.0' ENV TINI_VERSION='0.17.0'

View File

@ -19,11 +19,17 @@
"external": { "external": {
"grpc": { "grpc": {
"network": "tcp4", "network": "tcp4",
"address": "192.168.1.50:50006" "address": "central:9111"
}, },
"redis": { "kafka": {
"network": "tcp4", "producers": {
"address": "192.168.1.50:6379" "metric": {
"brokers": [
"kafka1:9092"
],
"topic": "overflow-metric-topic"
}
}
} }
} }
} }

View File

@ -3,6 +3,6 @@
rm ./dist rm ./dist
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o ./dist/probe_gateway_metric CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o ./dist/probe_gateway_metric
docker build -t docker.loafle.net/overflow/probe_gateway_metric:1.0.0 . docker build -t docker.loafle.net/overflow/probe_gateway_metric:1.0.0-SNAPSHOT .
docker push docker.loafle.net/overflow/probe_gateway_metric:1.0.0 docker push docker.loafle.net/overflow/probe_gateway_metric:1.0.0-SNAPSHOT

View File

@ -2,7 +2,7 @@
"serverHandler": { "serverHandler": {
"name": "Gateway Probe Metric", "name": "Gateway Probe Metric",
"network": "tcp4", "network": "tcp4",
"address": ":19095", "address": ":19110",
"concurrency": 262144, "concurrency": 262144,
"keepAlive": 60, "keepAlive": 60,
"handshakeTimeout": 60, "handshakeTimeout": 60,
@ -19,7 +19,7 @@
"external": { "external": {
"grpc": { "grpc": {
"network": "tcp4", "network": "tcp4",
"address": "192.168.1.50:50006" "address": "192.168.1.101:9111"
}, },
"kafka": { "kafka": {
"producers": { "producers": {

View File

@ -2,10 +2,11 @@ version: "3"
services: services:
probe_gateway_metric: probe_gateway_metric:
image: docker.loafle.net/overflow/probe_gateway_metric:1.0.0 image: docker.loafle.net/overflow/probe_gateway_metric:1.0.0-SNAPSHOT
container_name: probe_gateway_metric container_name: probe_gateway_metric
# volumes: hostname: probe_gateway_metric
# - /service/redis/data/var/redis:/data restart: always
# - /service/redis/data/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf volumes:
- /service/overflow/data/probe_gateway_metric/opt/conf:/opt/conf
ports: ports:
- "19095:80" - 19110:80