Score
0
14 Unstar Star 26 Fork 10

EdgeGallery / mep-agentGoApache-2.0

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Mep-Agent是为第三方应用程序提供代理服务的中间件。它可以帮助未实现ETSI接口的应用注册到MEP,并实现应用服务注册和发现 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Mep-Agent

License Jenkins

Introduction

Mep-Agent is a middleware that provides proxy services for third-party apps. It can help apps, which do not implement the ETSI interface to register to MEP, and realize app service registration and discovery. Mep-Agent will start at the same time as the application container, and read the content in the file conf/app_instance_info.yaml to automatically register the service.

MEP-Agent code directory

.      
├─conf
├─docker
└─src
    ├─config
    ├─main
    ├─model
    ├─service
    ├─test
    └─util

Above is the directory tree of MEP-Agent project, their usage is as belows:

  • conf: mep-agent config file
  • docker: dockerfile
  • src: source code
  • config: config files
  • main: main method
  • model: mep1 service register model and mepauth authorization model
  • service: request for token and register service
  • test: unit test
  • util: util tool file

Build & Run

Mep-Agent is developed by the Go language and provides services in the form of a docker image. When it starts, it will read the configuration file and register the App to the MEP to realize service registration and discovery.

  • Build

    git clone from mep-agent master repo

    git clone https://gitee.com/edgegallery/mep-agent.git

    build the mep-agent image

    docker build -t mep-agent:latest -f docker/Dockerfile .
  • Run

    Prepare the certificate files and mepagent.properties, which contains ACCESS_KEY and SECRET_KEY, and run with

    docker run -tid --name mepagent \
               -e MEP_IP=<host IP> \
               -e MEP_APIGW_PORT=8443 \
               -e ENABLE_WAIT=true \
               -v mepagent.properties:/usr/mep/mepagent.properties \
               mep-agent:latest

More details of the building and installation process please refer to HERE.

Notice

Mep-Agent is written in Go language. In order to minimize the image, it adopts the process of statically compiling and then packaging, without relying on the basic Go language image, which greatly reduces the size of the image.

Comments ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/edgegallery/mep-agent.git
git@gitee.com:edgegallery/mep-agent.git
edgegallery
mep-agent
mep-agent
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542