当前位置:网站首页>Sonic cloud real machine learning summary 6 - 1.4.1 server and agent deployment
Sonic cloud real machine learning summary 6 - 1.4.1 server and agent deployment
2022-07-01 22:26:00 【Ah_ coke】
sonic1.4.1 Cloud real machine server 、agent End deployment
- 1、linux Create directory sonic, create a file docker-compose-sonic-1.4.1.yml And documents .env
- 2、 Don't have to change , Copy directly to docker-compose-sonic-1.4.1.yml in :
- 3、 file .env The content of , Need to fill in your linux Of ip:
- 4、 Deploy docker、docker-compose
- 5、 Get into sonic Start the container under the directory , And go to the website linux Of IP:3000 verification :
- 6、 Android device access
1、linux Create directory sonic, create a file docker-compose-sonic-1.4.1.yml And documents .env
2、 Don't have to change , Copy directly to docker-compose-sonic-1.4.1.yml in :
version: '3'
services:
sonic-mysql:
image: "mysql:5.7"
container_name: sonic-mysql
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
- MYSQL_ROOT_PASSWORD=Sonic!@#123
- MYSQL_DATABASE=sonic
volumes:
- ./mysql/data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- sonic-network
sonic-server-eureka:
image: "registry.cn-hangzhou.aliyuncs.com/sonic-cloud/sonic-server-eureka:v1.4.1-beta"
hostname: sonic-server-eureka
environment:
- SONIC_EUREKA_USERNAME
- SONIC_EUREKA_PASSWORD
- SONIC_EUREKA_PORT
- SONIC_EUREKA_HOST=sonic-server-eureka
volumes:
- ./logs/:/logs/
depends_on:
- sonic-mysql
networks:
- sonic-network
ports:
- "${SONIC_EUREKA_PORT}:${SONIC_EUREKA_PORT}"
sonic-server-gateway:
image: "registry.cn-hangzhou.aliyuncs.com/sonic-cloud/sonic-server-gateway:v1.4.1-beta"
hostname: sonic-server-gateway
environment:
- SONIC_EUREKA_USERNAME
- SONIC_EUREKA_PASSWORD
- SONIC_EUREKA_PORT
- SONIC_EUREKA_HOST=sonic-server-eureka
- SECRET_KEY
- EXPIRE_DAY
volumes:
- ./logs/:/logs/
depends_on:
- sonic-mysql
- sonic-server-eureka
networks:
- sonic-network
restart: on-failure
sonic-server-controller:
image: "registry.cn-hangzhou.aliyuncs.com/sonic-cloud/sonic-server-controller:v1.4.1-beta"
environment:
- SONIC_EUREKA_USERNAME
- SONIC_EUREKA_PASSWORD
- SONIC_EUREKA_PORT
- SONIC_EUREKA_HOST=sonic-server-eureka
- MYSQL_HOST
- MYSQL_PORT
- MYSQL_DATABASE
- MYSQL_USERNAME
- MYSQL_PASSWORD
- SERVER_HOST
- SERVER_PORT
- SECRET_KEY
- EXPIRE_DAY
- REGISTER_ENABLE
- NORMAL_USER_ENABLE
- LDAP_USER_ENABLE
- LDAP_USER_ID
- LDAP_BASE_DN
- LDAP_BASE
- LDAP_USERNAME
- LDAP_PASSWORD
- LDAP_URL
networks:
- sonic-network
volumes:
- ./logs/:/logs/
depends_on:
- sonic-mysql
- sonic-server-eureka
restart: on-failure
sonic-server-folder:
image: "registry.cn-hangzhou.aliyuncs.com/sonic-cloud/sonic-server-folder:v1.4.1-beta"
environment:
- SONIC_EUREKA_USERNAME
- SONIC_EUREKA_PASSWORD
- SONIC_EUREKA_HOST=sonic-server-eureka
- SONIC_EUREKA_PORT
- SERVER_HOST
- SERVER_PORT
- SECRET_KEY
- EXPIRE_DAY
networks:
- sonic-network
volumes:
- ./keepFiles/:/keepFiles/
- ./imageFiles/:/imageFiles/
- ./recordFiles/:/recordFiles/
- ./packageFiles/:/packageFiles/
- ./logs/:/logs/
depends_on:
- sonic-mysql
- sonic-server-eureka
restart: on-failure
sonic-client-web:
image: "registry.cn-hangzhou.aliyuncs.com/sonic-cloud/sonic-client-web:v1.4.1-beta"
environment:
- SERVER_HOST
- SERVER_PORT
networks:
- sonic-network
depends_on:
- sonic-mysql
- sonic-server-gateway
restart: on-failure
ports:
- "${SERVER_PORT}:80"
networks:
sonic-network:
driver: bridge
3、 file .env The content of , Need to fill in your linux Of ip:
################################################
# Do you need any help? #
# Visit https://sonic-cloud.gitee.io/#/Deploy #
################################################
##################
# Service Config #
##################
SERVER_HOST= Yours linux Of IP Address
SERVER_PORT=3000
SONIC_EUREKA_USERNAME=sonic
SONIC_EUREKA_PASSWORD=sonic
SONIC_EUREKA_PORT=9090
################
# MySQL Config #
################
MYSQL_HOST= Yours linux Of IP Address
MYSQL_PORT=3306
MYSQL_DATABASE=sonic
MYSQL_USERNAME=root
MYSQL_PASSWORD=Sonic!@#123
################
# User Config #
################
SECRET_KEY=sonic
EXPIRE_DAY=14
PERMISSION_ENABLE=true
PERMISSION_SUPER_ADMIN=sonic
REGISTER_ENABLE=true
NORMAL_USER_ENABLE=true
LDAP_USER_ENABLE=false
LDAP_USER_ID=cn
LDAP_BASE_DN=ou=users
LDAP_BASE=ou=system
LDAP_USERNAME=uid=admin,ou=system
LDAP_PASSWORD=Sonic!@#123
LDAP_URL=ldap:// Yours linux Of IP Address :10389
4、 Deploy docker、docker-compose
https://tfjiao.blog.csdn.net/article/details/116905608
5、 Get into sonic Start the container under the directory , And go to the website linux Of IP:3000 verification :
docker-compose -f docker-compose-sonic-1.4.1.yml up -d
Failure words , Delete the started container :
docker-compose -f docker-compose-sonic-1.4.1.yml down
6、 Android device access
1、 The deployment environment :https://tfjiao.blog.csdn.net/article/details/123212518
2、 To configure 1.4.1 Of agent:
- Enter official website :https://sonic-cloud.gitee.io/#/Deploy?tag=agent
- download sonic-agent-v1.4.1-beta-windows_x86_64.zip
- After decompressing :E:\sonic-agent-v1.4.1-beta-windows_x86_64
- Get into config Catalog , To configure application-sonic-agent.yml file , Give Way sonic The website recognizes your computer .
- Modify the configuration content
sonic:
agent:
host: Your local computer IP
port: 7777
# Replace with sonic Webpage front end newly added Agent Generated key
key: you are here sonic Added on key
server:
# Change to server Of SERVER_HOST
host: You deploy linux Of IP
# Change to server Of SERVER_PORT
port: 3000
modules:
android:
# Whether to open Android module
enable: true
# Whether to turn on remote adb Debugging function
use-adbkit: true
ios:
# If you don't need a connection iOS equipment , Please put true Change it to false. Open windows Please make sure this machine is installed iTunes
enable: false
# Replace with your own wda Of bundleId, without .xctrunner The suffix will be automatically completed , It is recommended to use the company's Developer Certificate
wda-bundle-id: com.sonic.WebDriverAgentRunner.xctrunner
appium:
# Open or not Appium function
enable: true
webview:
# Whether online is enabled webView Debugging function
enable: true
# Google debug port , Generally, there is no need to modify ( Default 0 Use random port , If you need to open the firewall for external use , Please set the fixed port, such as 7778)
chrome-driver-debug-port: 0
# Replace with Agent On the machine chrome Browser's driver route , You can go to http://npm.taobao.org/mirrors/chromedriver/ download
chrome-driver-path: Your Google browser driven path
sgm:
enable: true
key Where is it ?
- sonic Directory start agent:
java -jar sonic_xxx.jar
边栏推荐
猜你喜欢

News classification based on LSTM model

Sonic云真机学习总结6 - 1.4.1服务端、agent端部署

Spark面试题

Flume interview questions

基于K-means的用户画像聚类模型

Basic operation of binary tree

Significance and measures of security encryption of industrial control equipment

AirServer2022最新版功能介绍及下载

Icml2022 | interventional contrastive learning based on meta semantic regularization

指标陷阱:IT领导者易犯的七个KPI错误
随机推荐
辅音和声母的区别?(声母与辅音的区别)
Talking from mlperf: how to lead the next wave of AI accelerator
首席信息官对高绩效IT团队定义的探讨和分析
微信小程序,连续播放多段视频。合成一个视频的样子,自定义视频进度条
Difference and use between require and import
Microsoft, Columbia University | Godel: large scale pre training of goal oriented dialogue
PMP证书真的有用吗?
比较版本号[双指针截取自己想要的字串]
[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial
业务可视化-让你的流程图'Run'起来
vscode的使用
Medium pen test questions: flip the string, such as ABCD, print out DCBA
LIS (longest ascending subsequence) problem that can be understood [easy to understand]
【MySQL】索引的创建、查看和删除
Flume interview questions
Fundamentals - IO intensive computing and CPU intensive computing
Business visualization - make your flowchart'run'up
C中main函数的几种写法
基础—io密集型计算和cpu密集型计算
《QTreeView+QAbstractItemModel自定义模型》:系列教程之三[通俗易懂]