Commit a48fa9d7 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Add lite2edge and remove old code passed as bind volumes

parent 0f52fa2c
Loading
Loading
Loading
Loading
+32 −4
Original line number Diff line number Diff line
@@ -74,8 +74,6 @@ services:
      - ../../conf/config-fm-remote.cfg:/usr/app/src/conf/config.cfg
      - ../../clients/tf_sdk.py:/usr/app/src/clients/tf_sdk.py
      - /home/sergio/i2cat/OperatorPlatform/OP_Automation/automation/1-kind-cluster/operator-platform-external-kubeconfig.yaml:/root/.kube/config
      # For local deployment, changes in lite2edge are automatically reflected and no need to push new Pipy package to Gitlab packet repo
      - ../../../../kubernetes-adapter/lite2edge:/usr/local/lib/python3.12/site-packages/lite2edge

    depends_on:
      - mongodb-remote
@@ -100,14 +98,44 @@ services:
      - ../../conf/config-fm-local.cfg:/usr/app/src/conf/config.cfg
      - ../../clients/tf_sdk.py:/usr/app/src/clients/tf_sdk.py
      - /home/sergio/i2cat/OperatorPlatform/OP_Automation/automation/1-kind-cluster/operator-platform-external-kubeconfig.yaml:/root/.kube/config
      # For local deployment, changes in lite2edge are automatically reflected and no need to push new Pipy package to Gitlab packet repo
      - ../../../../kubernetes-adapter/lite2edge:/usr/local/lib/python3.12/site-packages/lite2edge
    depends_on:
      - mongodb-local
      - keycloak-local
    networks:
      - local-net

  lite2edge-local:
    build:
      context: ../../../../lite2edge
      dockerfile: Dockerfile
    container_name: lite2edge-local
    restart: unless-stopped
    ports:
      - "8752:8080"
    environment:
      - KUBECONFIG=/root/.kube/config
      - LOG_LEVEL=INFO
    volumes:
      - /home/sergio/i2cat/OperatorPlatform/OP_Automation/automation/1-kind-cluster/operator-platform-external-kubeconfig.yaml:/root/.kube/config:ro
    networks:
      - local-net

  lite2edge-remote:
    build:
      context: ../../../../lite2edge
      dockerfile: Dockerfile
    container_name: lite2edge-remote
    restart: unless-stopped
    ports:
      - "8751:8080"
    environment:
      - KUBECONFIG=/root/.kube/config
      - LOG_LEVEL=INFO
    volumes:
      - /home/sergio/i2cat/OperatorPlatform/OP_Automation/automation/1-kind-cluster/operator-platform-external-kubeconfig.yaml:/root/.kube/config:ro
    networks:
      - remote-net

volumes:
  smdbdata-local:
    driver: local