Commit 8a080b81 authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Fixing two issues with the previous commit: i) obtaining the correct service...

Fixing two issues with the previous commit: i) obtaining the correct service gRPC port; ii) updating the gitlab ci file to use the correct service port.
parent 116c2656
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ unit_test centralizedcybersecurity:
    - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create -d bridge teraflowbridge; fi  
  script:
    - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG"
    - docker run -d -p 3030:3030 --name $IMAGE_NAME --network=teraflowbridge "$IMAGE_NAME:$IMAGE_TAG"
    - docker run -d -p 10000:10000 --name $IMAGE_NAME --network=teraflowbridge "$IMAGE_NAME:$IMAGE_TAG"
    - docker ps -a
    - sleep 5
    - docker ps -a
+5 −5
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ def signal_handler(signal, frame):
def main():
    global terminate, logger

    service_port = os.environ.get('SERVICESERVICE_SERVICE_PORT_GRPC', GRPC_SERVICE_PORT)
    service_port = os.environ.get('CENTRALIZEDCYBERSECURITYSERVICE_SERVICE_PORT_GRPC', GRPC_SERVICE_PORT)
    max_workers  = os.environ.get('MAX_WORKERS',                                       GRPC_MAX_WORKERS )
    grace_period = os.environ.get('GRACE_PERIOD',                                      GRPC_GRACE_PERIOD)
    log_level    = os.environ.get('LOG_LEVEL',                                         LOG_LEVEL        )