ing
This commit is contained in:
		
							parent
							
								
									b99bf496f9
								
							
						
					
					
						commit
						f6ffe62931
					
				@ -7,9 +7,7 @@ COPY _docker/config/* /etc/overflow/config/
 | 
			
		||||
COPY _docker/bin/* /usr/local/overflow/bin/
 | 
			
		||||
COPY dist/probe_gateway_metric /usr/local/overflow/bin/
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p /etc/overflow/config; \
 | 
			
		||||
    mkdir -p /usr/local/overflow/bin; \
 | 
			
		||||
    mkdir -p /var/overflow/logs; \
 | 
			
		||||
RUN mkdir -p /var/overflow/logs; \
 | 
			
		||||
    chmod +x /usr/local/overflow/bin/docker-entrypoint.sh /usr/local/overflow/bin/probe_gateway_metric;
 | 
			
		||||
 | 
			
		||||
ENV TINI_VERSION='0.17.0'
 | 
			
		||||
 | 
			
		||||
@ -19,11 +19,17 @@
 | 
			
		||||
  "external": {
 | 
			
		||||
    "grpc": {
 | 
			
		||||
      "network": "tcp4",
 | 
			
		||||
      "address": "192.168.1.50:50006"
 | 
			
		||||
      "address": "central:9111"
 | 
			
		||||
    },
 | 
			
		||||
    "redis": {
 | 
			
		||||
      "network": "tcp4",
 | 
			
		||||
      "address": "192.168.1.50:6379"      
 | 
			
		||||
    "kafka": {
 | 
			
		||||
      "producers": {
 | 
			
		||||
        "metric": {
 | 
			
		||||
          "brokers": [
 | 
			
		||||
            "kafka1:9092"
 | 
			
		||||
          ],
 | 
			
		||||
          "topic": "overflow-metric-topic"
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								build.sh
									
									
									
									
									
								
							@ -3,6 +3,6 @@
 | 
			
		||||
rm ./dist
 | 
			
		||||
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
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
  "serverHandler": {
 | 
			
		||||
    "name": "Gateway Probe Metric",
 | 
			
		||||
    "network": "tcp4",
 | 
			
		||||
    "address": ":19095",
 | 
			
		||||
    "address": ":19110",
 | 
			
		||||
    "concurrency": 262144,
 | 
			
		||||
    "keepAlive": 60,
 | 
			
		||||
    "handshakeTimeout": 60,
 | 
			
		||||
@ -19,7 +19,7 @@
 | 
			
		||||
  "external": {
 | 
			
		||||
    "grpc": {
 | 
			
		||||
      "network": "tcp4",
 | 
			
		||||
      "address": "192.168.1.50:50006"
 | 
			
		||||
      "address": "192.168.1.101:9111"
 | 
			
		||||
    },
 | 
			
		||||
    "kafka": {
 | 
			
		||||
      "producers": {
 | 
			
		||||
 | 
			
		||||
@ -2,10 +2,11 @@ version: "3"
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  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
 | 
			
		||||
    # volumes:
 | 
			
		||||
      # - /service/redis/data/var/redis:/data
 | 
			
		||||
      # - /service/redis/data/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf
 | 
			
		||||
    hostname: probe_gateway_metric
 | 
			
		||||
    restart: always
 | 
			
		||||
    volumes:
 | 
			
		||||
      - /service/overflow/data/probe_gateway_metric/opt/conf:/opt/conf
 | 
			
		||||
    ports:
 | 
			
		||||
      - "19095:80"
 | 
			
		||||
      - 19110:80
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user