Link Vision Edge docker化部署

更新时间:2018-12-25 19:51:55

1.底座依赖

LVE底座
|
|——docker
|
|——docker-compose

sudo yum -y install yum-utils
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce 
sudo systemctl start docker
sudo systemctl enable docker
sudo yum -y install epel-release
sudo yum -y install python-pip
sudo pip install -U docker-compose
【如果提示pyldap版本不够,执行以下命令
sudo pip install pyldap --ignore-installed pyldap
如果提示requests版本不够,执行以下命令
sudo pip install requests --ignore-installed requests】
//关闭防火墙
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
sudo systemctl restart docker
//用户获取docker执行权限
sudo gpasswd -a ${USER} docker
sudo service docker restart
【如果提示Got permission denied while trying to connect to the Docker daemon socket,则执行newgrp docker
】

2.启动脚本

LVE启动脚本
|
|——docker-compose.xml
|
|——docker-ctl.sh

download: lve_docker_script.zip

3.LVE镜像

LVE容器
|
|——config一次性配置初始化容器
|
|——access接入服务容器
|
|——biz业务/调度服务容器
|
|——gateway网关服务容器
|
|——console控制台服务容器
|
|——streaming边缘流转服务容器

4.运维命令

镜像版本配置
docker-ctl.sh
|
|——LVE_IMAGE_HUB=registry.cn-hangzhou.aliyuncs.com/link_vision_edge
|
|——LVE_ACCESS_IMAGE=lve_access:1.0
|
|——LVE_BIZ_IMAGE=lve_biz:1.0
|
|——LVE_CONFIG_IMAGE=lve_config:1.0
|
|——LVE_CONSOLE_IMAGE=lve_console:1.0
|
|——LVE_GATEWAY_IMAGE=lve_gateway:1.0
|
|——LVE_STREAMING_IMAGE=lve_streaming:1.0

镜像拉取
./docker-ctl.sh pull all (all、config、access、biz、gateway、console、streaming)

初始化部署
./docker-ctl.sh up -d
停止单应用
./docker-ctl.sh stop access
删除单应用
./docker-ctl.sh rm access
启动单应用
./docker-ctl.sh start access

更多语法参考docker-compose

results matching ""

    No results matching ""