当前位置:网站首页>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
边栏推荐
- Why does blocprovider feel similar to provider?
- MySQL learning notes - SQL optimization of optimization
- Design and practice of new generation cloud native database
- Icml2022 | interventional contrastive learning based on meta semantic regularization
- 小 P 周刊 Vol.11
- "The silk road is in its youth and looks at Fujian" is in the hot collection of works in the Fujian foreign youth short video competition
- 【单体】流辰信息I-BPSv3服务器推荐配置
- 基于K-means的用户画像聚类模型
- 多种智能指针
- Case of camera opening by tour
猜你喜欢
随机推荐
收到一封CTO来信,邀约面试机器学习工程师
ICML2022 | 基于元语义正则化的介入性对比学习
require与import的区别和使用
[intelligent QBD risk assessment tool] Shanghai daoning brings you leanqbd introduction, trial and tutorial
NIO与传统IO的区别
Make a three digit number of all daffodils "recommended collection"
Business visualization - make your flowchart'run'up
PCB plug hole technology~
An operation tool used by we media professionals who earn 1w+ a month
AirServer2022最新版功能介绍及下载
Application of real estate management based on 3D GIS
JS how to get a list of elements in a collection object
【生态伙伴】鲲鹏系统工程师培训
Which securities company should we choose to open an account for flush stock? Is it safe to open an account with a mobile phone?
【深度学习】利用深度学习监控女朋友的微信聊天?
都能看懂的LIS(最长上升子序列)问题[通俗易懂]
多种智能指针
Manually implement function isinstanceof (child, parent)
CNN卷积神经网络原理讲解+图片识别应用(附源码)[通俗易懂]
浏览器tab页之间的通信