当前位置:网站首页>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
边栏推荐
- Medium pen test questions: flip the string, such as ABCD, print out DCBA
- [commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial
- An operation tool used by we media professionals who earn 1w+ a month
- 【单体】流辰信息I-BPSv3服务器推荐配置
- Go - exe corresponding to related dependency
- MQ learning notes
- What is the difference between consonants and Initials? (difference between initials and consonants)
- vscode的使用
- PCB线路板塞孔工艺的那些事儿~
- 【生态伙伴】鲲鹏系统工程师培训
猜你喜欢
Pytest Collection (2) - mode de fonctionnement pytest
上半年暂停考试要补考?包含监理工程师、建筑师等十项考试
I received a letter from CTO inviting me to interview machine learning engineer
Design and practice of new generation cloud native database
首席信息官对高绩效IT团队定义的探讨和分析
[noip2013] building block competition [noip2018] road laying greed / difference
List announced | outstanding intellectual property service team in China in 2021
Do you want to make up for the suspended examination in the first half of the year? Including ten examinations for supervision engineers, architects, etc
【juc学习之路第9天】屏障衍生工具
News classification based on LSTM model
随机推荐
焱融看 | 混合云时代下,如何制定多云策略
TOPS,处理器运算能力单位、每秒钟可进行一万亿次
K-means based user portrait clustering model
js如何获取集合对象中某元素列表
首席信息官对高绩效IT团队定义的探讨和分析
matlab遍历图像、字符串数组等基本操作
Application of real estate management based on 3D GIS
【单体】流辰信息I-BPSv3服务器推荐配置
旁路由设置的正确方式
Business visualization - make your flowchart'run'up
I received a letter from CTO inviting me to interview machine learning engineer
require与import的区别和使用
《QTreeView+QAbstractItemModel自定义模型》:系列教程之三[通俗易懂]
[NOIP2013]积木大赛 [NOIP2018]道路铺设 贪心/差分
Wechat applet, continuously playing multiple videos. Synthesize the appearance of a video and customize the video progress bar
Go — 相关依赖对应的exe
[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!
统计字符中每个字符出现的个数
Mask wearing detection method based on yolov5
多种智能指针