当前位置:网站首页>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
边栏推荐
- [deep learning] use deep learning to monitor your girlfriend's wechat chat?
- mysql 学习笔记-优化之SQL优化
- 一次调试去了解redis集群的slot机制
- PCB线路板塞孔工艺的那些事儿~
- Wechat applet, continuously playing multiple videos. Synthesize the appearance of a video and customize the video progress bar
- LIS (longest ascending subsequence) problem that can be understood [easy to understand]
- 信标委云原生专题组组长,任重道远!
- 分离字符串中的字母和数字并使得字母在前数组在后
- Simple interactive operation of electron learning (III)
- 面试题:MySQL的union all和union有什么区别、MySQL有哪几种join方式(阿里面试题)[通俗易懂]
猜你喜欢
![[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial](/img/b0/029cdea72483ed9bc8a0d66908983a.png)
[commercial terminal simulation solution] Shanghai daoning brings you Georgia introduction, trial and tutorial

小 P 周刊 Vol.11

ICML2022 | 基于元语义正则化的介入性对比学习

基于三维GIS的不动产管理应用
![[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!](/img/27/4bd0de716f5cb360d54f140dc8e9c1.png)
[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!

locust 系列入门

Getting started with the lockust series

Pytest collection (2) - pytest operation mode

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

【智能QbD风险评估工具】上海道宁为您带来LeanQbD介绍、试用、教程
随机推荐
Microsoft, Columbia University | Godel: large scale pre training of goal oriented dialogue
浏览器tab页之间的通信
Test cancellation 1
按照功能对Boost库进行分类
A debugging to understand the slot mechanism of redis cluster
Count the number of each character in the character
News classification based on LSTM model
NIO与传统IO的区别
Using closures to switch toggle by clicking a button
函数基本学习之一
Why does blocprovider feel similar to provider?
Difference and use between require and import
[STM32] stm32cubemx tutorial II - basic use (new projects light up LED lights)
业务可视化-让你的流程图'Run'起来
九章云极DataCanvas公司蝉联中国机器学习平台市场TOP 3
[noip2013] building block competition [noip2018] road laying greed / difference
Simple interactive operation of electron learning (III)
统计字符中每个字符出现的个数
"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
MIT|256KB 内存下的设备上训练