Browse Source

# SO-8 DevOps3

Lith 1 year ago
parent
commit
829c1907e9
31 changed files with 1 additions and 869 deletions
  1. 0 46
      Publish/DevOps3/build-bash/40.Station-publish-multiple.bash
  2. 1 1
      Publish/DevOps3/build-bash/41.extra-publish.sh
  3. 0 32
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/docker导入导出镜像.txt
  4. 0 3
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/Dockerfile
  5. BIN
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/CGateway/Gateway
  6. 0 65
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/CGateway/appsettings.json
  7. 0 26
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/CGateway/readme.md
  8. 0 5
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/startup.sh
  9. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-robot/Dockerfile
  10. 0 3
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-robot/root/app/startup.sh
  11. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-sersall/Dockerfile
  12. 0 3
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-sersall/root/app/startup.sh
  13. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo/Dockerfile
  14. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo/root/app/startup.sh
  15. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gateway/Dockerfile
  16. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gateway/root/app/startup.sh
  17. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gover/Dockerfile
  18. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gover/root/app/startup.sh
  19. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers/Dockerfile
  20. 0 2
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers/root/app/startup.sh
  21. 0 87
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/制作镜像Sers.txt
  22. 0 48
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/制作镜像sers-cgateway-1.2.0.txt
  23. 0 65
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-cgateway/appsettings.json
  24. 0 58
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-cgateway/docker部署cgateway.txt
  25. 0 63
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-demo-robot/docker部署sers-demo-robot.txt
  26. 0 58
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-demo-sersall/docker部署sers-demo-sersall.txt
  27. 0 60
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-demo/docker部署sers-demo.txt
  28. 0 61
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-gateway/docker部署sers-gateway.txt
  29. 0 61
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-gover/docker部署sers-gover.txt
  30. 0 66
      Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers/docker部署sers.txt
  31. 0 38
      Publish/ReleaseFile/SersDocker(2021-05-19)/pack SersDocker.bat

+ 0 - 46
Publish/DevOps3/build-bash/40.Station-publish-multiple.bash

@@ -1,46 +0,0 @@
-set -e
-
-
-#---------------------------------------------------------------------
-# args
-args_="
-
-export basePath=/root/temp/svn
-export NUGET_PATH=$basePath/Publish/release/.nuget
-
-# "
-
-
-curPath=$PWD
-
-cd $curPath/../../..
-export basePath=$PWD
-cd $curPath
-
-#----------------------------------------------
-echo "40.Station-publish-multiple.bash"
-
-for netVersion in net5.0 netcoreapp3.1 netcoreapp3.0 netcoreapp2.2 netcoreapp2.1
-do
-	echo "#2.1 publish netVersion: $netVersion"
-
-	echo "#2.2 change netVersion to $netVersion in csproj"
-	sed -i 's/net6.0/'"$netVersion"'/g' `find ${basePath} -name *.csproj -exec grep '<publish>' -l {} \;`
-
-
-	echo "#2.3 sh 40.Station-publish.sh"
-	cd $curPath
-	sh 40.Station-publish.sh
-
-
-	echo "#2.4 change back netVersion to net6.0 in csproj"
-	sed -i 's/'"$netVersion"'/net6.0/g' `find ${basePath} -name *.csproj -exec grep '<publish>' -l {} \;`
-
-done
-
-
-
-cd $curPath
-
-
-

+ 1 - 1
Publish/DevOps3/build-bash/41.extra-publish.sh

@@ -13,7 +13,7 @@ export NUGET_PATH=$basePath/Publish/release/.nuget
 
 #---------------------------------------------------------------------
 #41.extra-publish.sh
-bashFile="$basePath/Publish/DevOps2/environment/build-bash__41.extra-publish.sh"
+bashFile="$PWD/../environment/build-bash__41.extra-publish.sh"
 if [ -f "$bashFile" ]; then
 	echo '#41.extra-publish.sh'
 	sh "$bashFile"

+ 0 - 32
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/docker导入导出镜像.txt

@@ -1,32 +0,0 @@
-#导出镜像
-export tag=${tag}
-
-docker save -o /root/image/dotnet.2.1.tar serset/dotnet:2.1
-docker save -o /root/image/sers-cgateway-1.2.0.tar serset/sers-cgateway:1.2.0
-
-
-docker save -o /root/image/sers.${tag}.tar serset/sers:${tag}
-docker save -o /root/image/sers-gateway.${tag}.tar serset/sers-gateway:${tag}
-docker save -o /root/image/sers-gover.${tag}.tar serset/sers-gover:${tag}
-
-docker save -o /root/image/sers-demo-robot.${tag}.tar serset/sers-demo-robot:${tag}
-docker save -o /root/image/sers-demo-sersall.${tag}.tar serset/sers-demo-sersall:${tag}
-docker save -o /root/image/sers-demo.${tag}.tar serset/sers-demo:${tag}
-
-
-
-#导入镜像
-
-docker load -i /root/image/dotnet.2.1.tar
-docker load -i /root/image/sers-cgateway.1.2.0.tar
-
-docker load -i /root/image/sers.${tag}.tar
-docker load -i /root/image/sers-gateway.${tag}.tar
-docker load -i /root/image/sers-gover.${tag}.tar
-
-docker load -i /root/image/sers-demo-robot.${tag}.tar
-docker load -i /root/image/sers-demo-sersall.${tag}.tar 
-docker load -i /root/image/sers-demo.${tag}.tar 
-
-
- 

+ 0 - 3
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/Dockerfile

@@ -1,3 +0,0 @@
-FROM ubuntu:20.04
-COPY root /root
-CMD ["sh","/root/app/startup.sh"]

BIN
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/CGateway/Gateway


+ 0 - 65
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/CGateway/appsettings.json

@@ -1,65 +0,0 @@
-{
-  "Sers": {
-
-  	"//Mq":" 消息队列配置",
-    "Mq": {
-      "Socket": {
-        "//host":" ServiceCenter 服务端 host地址",
-        "host": "127.0.0.1",
-        "//port":" ServiceCenter 服务端 监听端口号 ",
-        "port": 10345, 
-            
-
-        "//(x.1)workThread":" 后台处理消息的线程个数(单位个,默认16) ",
-        "workThreadCount": 16,
-
-        "//(x.2)ping":" ",
-        
-        "//pingTimeout":" 心跳测试超时时间(单位ms,默认2000)",        
-        "pingTimeout": 30000,
-        
-        "//pingRetryCount":" 心跳测试失败重试次数(单位次,默认3)",         
-        "pingRetryCount": 10,
-        
-        "//pingInterval":" 心跳测试时间间隔(单位ms,默认1000)",       
-        "pingInterval": 10000,
-
-       
-        "//(x.3)request":" ",  
-        "//requestTimeout":" 请求超时时间(单位ms,默认300000)",      
-        "requestTimeout": 60000,
-        
- 
-        "//(x.4)secretKey":" 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 ",
-        "secretKey": "SersSocketMq"
-      }
-    },
- 
- 
-    "Gateway": {
-	"//Console_PrintLog":"  print the log to console. default:false ",
-	"Console_PrintLog":"false",
-
-	"Rpc":{ 	"CallerSource":"OutSide"},
-	"WebHost":{ 	
-		"http_port":"6008", "workThreadCount":16,
-		
-		"//ResponseDefaultContentType":" Response Default  Content-Type ",
-		"ResponseDefaultContentType": "application/json; charset=UTF-8",	
-
-		"//ResponseExtHeaders":" Response Ext Headers.(enable CORS)",
-		"ResponseExtHeaders": "\nAccess-Control-Allow-Headers: Authorization,authorization,Content-Type\nAccess-Control-Allow-Headers: *\nAccess-Control-Allow-Credentials: true\nAccess-Control-Allow-Origin: *"	
-	},
-
-	"StationRegist_RegistArg":
-	{	"serviceStationInfo":		{"serviceStationKey":"CGateway001","stationVersion":"1.2.0","serviceStationName":"CGateway"}
-		,"deviceInfo":	{"deviceKey":"CGateway001","OSPlatform":"Linux","OSArchitecture":"X64","OSDescription":"Ubuntu","MachineName":"Linux"}
-		,"apiNodes":[]	
-	}	
-
-	
-    }
-  }
-
-
-}

+ 0 - 26
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/CGateway/readme.md

@@ -1,26 +0,0 @@
-Sers CGateway v1.2.0
-
---------------------------------------------
-说明:
-
-
-
-1. 开发环境:Ubuntu eclipse c++   
-    运行环境:Linux
-
-
-
-
-2. linux运行脚本:
-
-cd /root/netapp/CGateway
-
-chmod  -R 777  ./Gateway
-
- ./Gateway
-
-
-
-
-
- 

+ 0 - 5
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-cgateway-1.2.0/root/app/startup.sh

@@ -1,5 +0,0 @@
-cd   /root/app/CGateway
-chmod  -R 777  ./Gateway
-
-#echo "run CGateway"
-./Gateway

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-robot/Dockerfile

@@ -1,2 +0,0 @@
-FROM serset/dotnet:6.0-runtime
-COPY root /root

+ 0 - 3
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-robot/root/app/startup.sh

@@ -1,3 +0,0 @@
-cd  /root/app/Robot
-
-dotnet App.Robot.Station.dll

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-sersall/Dockerfile

@@ -1,2 +0,0 @@
-FROM serset/dotnet:6.0
-COPY root /root

+ 0 - 3
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo-sersall/root/app/startup.sh

@@ -1,3 +0,0 @@
-cd   /root/app/ServiceCenter
-
-dotnet App.ServiceCenter.dll

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo/Dockerfile

@@ -1,2 +0,0 @@
-FROM serset/dotnet:6.0-runtime
-COPY root /root

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-demo/root/app/startup.sh

@@ -1,2 +0,0 @@
-cd   /root/app/Demo
-dotnet Did.SersLoader.Demo.dll

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gateway/Dockerfile

@@ -1,2 +0,0 @@
-FROM serset/dotnet:6.0
-COPY root /root

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gateway/root/app/startup.sh

@@ -1,2 +0,0 @@
-cd   /root/app/Gateway
-dotnet App.Gateway.dll

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gover/Dockerfile

@@ -1,2 +0,0 @@
-FROM serset/dotnet:6.0
-COPY root /root

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers-gover/root/app/startup.sh

@@ -1,2 +0,0 @@
-cd /root/app/Gover
-dotnet App.Gover.Gateway.dll

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers/Dockerfile

@@ -1,2 +0,0 @@
-FROM serset/dotnet:6.0
-COPY root /root

+ 0 - 2
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/sers/root/app/startup.sh

@@ -1,2 +0,0 @@
-cd   /root/app/ServiceCenter
-dotnet App.ServiceCenter.dll

+ 0 - 87
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/制作镜像Sers.txt

@@ -1,87 +0,0 @@
-#构建多架构镜像
-
-#docker login -u serset -p xxxxxxxxx
-
-#---------------------------------------------------------------------
-#(x.1)初始化构建器
-
-#启用 buildx 插件
-export DOCKER_CLI_EXPERIMENTAL=enabled
-
-#验证是否开启
-docker buildx version
-
-#启用 binfmt_misc
-docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
-
-#验证是 binfmt_misc 否开启
-ls -al /proc/sys/fs/binfmt_misc/
-
-
-#创建一个新的构建器
-docker buildx create --use --name mybuilder
-
-#启动构建器
-docker buildx inspect mybuilder --bootstrap
-
-#查看当前使用的构建器及构建器支持的 CPU 架构,可以看到支持很多 CPU 架构:
-docker buildx ls
-
-
-
-#---------------------------------------------------------------------
-#(x.2)构建多架构镜像( arm、arm64 和 amd64 )并推送到 Docker Hub
-
-#把文件夹拷贝到image下
-cd /root/image
-
-
-#构建镜像并推送到 Docker Hub 
-export tag=2.1.3.627
-
-cd sers
-docker buildx build . -t serset/sers:${tag} -t serset/sers --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
-cd .. 
-
-
-cd sers-gover 
-docker buildx build . -t serset/sers-gover:${tag} -t serset/sers-gover --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
-cd ..
-
-
-cd sers-gateway
-docker buildx build . -t serset/sers-gateway:${tag} -t serset/sers-gateway --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
-cd ..
-
-
-
-cd sers-demo-robot 
-docker buildx build . -t serset/sers-demo-robot:${tag} -t serset/sers-demo-robot --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
-cd ..
-
-cd sers-demo
-docker buildx build . -t serset/sers-demo:${tag} -t serset/sers-demo --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
-cd ..
-
-cd sers-demo-sersall 
-docker buildx build . -t serset/sers-demo-sersall:${tag} -t serset/sers-demo-sersall --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
-cd ..
-
- 
-
-
-#强制删除镜像名称中包含sers的镜像
-# docker rmi --force $(docker images | grep sers- | awk '{print $3}')
-
-
-
-
-
-
-
-
-
-
-
-
- 

+ 0 - 48
Publish/ReleaseFile/SersDocker(2021-05-19)/docker制作镜像Sers/制作镜像sers-cgateway-1.2.0.txt

@@ -1,48 +0,0 @@
-#构建多架构镜像
-
-#docker login -u serset -p xxxxxxxxx
-
-#---------------------------------------------------------------------
-#(x.1)初始化构建器
-
-#启用 buildx 插件
-export DOCKER_CLI_EXPERIMENTAL=enabled
-
-#验证是否开启
-docker buildx version
-
-#启用 binfmt_misc
-docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
-
-#验证是 binfmt_misc 否开启
-ls -al /proc/sys/fs/binfmt_misc/
-
-
-#创建一个新的构建器
-docker buildx create --use --name mybuilder
-
-#启动构建器
-docker buildx inspect mybuilder --bootstrap
-
-#查看当前使用的构建器及构建器支持的 CPU 架构,可以看到支持很多 CPU 架构:
-docker buildx ls
-
-
-
-#---------------------------------------------------------------------
-#(x.2)构建多架构镜像( arm、arm64 和 amd64 )并推送到 Docker Hub 
-
-#把本文件所在目录下的cgateway文件夹拷贝到 image 
-cd /root/image 
-
-#构建镜像并推送到 Docker Hub
-cd sers-cgateway-1.2.0
-docker buildx build . -t serset/sers-cgateway:1.2.0 -t serset/sers-cgateway --platform=linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x --push
-cd .. 
-
- 
-#强制删除镜像名称中包含sers的镜像
-# docker rmi --force $(docker images | grep sers- | awk '{print $3}')
-
-
-

+ 0 - 65
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-cgateway/appsettings.json

@@ -1,65 +0,0 @@
-{
-  "Sers": {
-
-  	"//Mq":" 消息队列配置",
-    "Mq": {
-      "Socket": {
-        "//host":" ServiceCenter 服务端 host地址",
-        "host": "127.0.0.1",
-        "//port":" ServiceCenter 服务端 监听端口号 ",
-        "port": 4580, 
-            
-
-        "//(x.1)workThread":" 后台处理消息的线程个数(单位个,默认16) ",
-        "workThreadCount": 16,
-
-        "//(x.2)ping":" ",
-        
-        "//pingTimeout":" 心跳测试超时时间(单位ms,默认2000)",        
-        "pingTimeout": 30000,
-        
-        "//pingRetryCount":" 心跳测试失败重试次数(单位次,默认3)",         
-        "pingRetryCount": 10,
-        
-        "//pingInterval":" 心跳测试时间间隔(单位ms,默认1000)",       
-        "pingInterval": 10000,
-
-       
-        "//(x.3)request":" ",  
-        "//requestTimeout":" 请求超时时间(单位ms,默认300000)",      
-        "requestTimeout": 60000,
-        
- 
-        "//(x.4)secretKey":" 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 ",
-        "secretKey": "SersCL"
-      }
-    },
- 
- 
-    "Gateway": {
-	"//Console_PrintLog":"  print the log to console. default:false ",
-	"Console_PrintLog":"false",
-
-	"Rpc":{ 	"CallerSource":"OutSide"},
-	"WebHost":{ 	
-		"http_port":"6008", "workThreadCount":16,
-		
-		"//ResponseDefaultContentType":" Response Default  Content-Type ",
-		"ResponseDefaultContentType": "application/json; charset=UTF-8",	
-
-		"//ResponseExtHeaders":" Response Ext Headers.(enable CORS)",
-		"ResponseExtHeaders": "\nAccess-Control-Allow-Headers: Authorization,authorization,Content-Type\nAccess-Control-Allow-Headers: *\nAccess-Control-Allow-Credentials: true\nAccess-Control-Allow-Origin: *"	
-	},
-
-	"StationRegist_RegistArg":
-	{	"serviceStationInfo":		{"serviceStationKey":"CGateway001","stationVersion":"1.2.0","serviceStationName":"CGateway"}
-		,"deviceInfo":	{"deviceKey":"CGateway001","OSPlatform":"Linux","OSArchitecture":"X64","OSDescription":"Ubuntu","MachineName":"Linux"}
-		,"apiNodes":[]	
-	}	
-
-	
-    }
-  }
-
-
-}

+ 0 - 58
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-cgateway/docker部署cgateway.txt

@@ -1,58 +0,0 @@
-docker部署sers-cgateway
-
-
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
- 
-
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers-cgateway
-docker run --name=sers-cgateway --restart=always -d \
--p 6008:6008 \
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/CGateway/appsettings.json \
--v $PWD/Logs:/root/app/CGateway/Logs \
-serset/sers-cgateway:1.2.0
-cd ..
-
-
-#端口    http://ip:6008
-
-
-#(x.3)应用已经运行
-   可在文件夹Logs 中查看日志
-
--------------------
-#常用命令
-
-#查看容器logs
-docker logs sers-cgateway
-
-#在容器内执行命令行
-docker  exec -it sers-cgateway bash
-
-#停止容器
-docker stop sers-cgateway
-
-#打开容器
-docker start sers-cgateway
-
-#重启容器
-docker restart sers-cgateway
-
-
-#删除容器
-docker rm sers-cgateway -f
-
-

+ 0 - 63
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-demo-robot/docker部署sers-demo-robot.txt

@@ -1,63 +0,0 @@
-docker部署sers-demo-robot
-
- 
-
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
- 
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers-demo-robot
-docker run --name=sers-demo-robot --restart=always -d \
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/Robot/appsettings.json \
--v $PWD/Logs:/root/app/Robot/Logs \
--v $PWD/Data:/root/app/Robot/Data \
-serset/sers-demo-robot
-cd ..
-
-
-#精简
-docker run --name=sers-demo-robot --restart=always --net=host -d serset/sers-demo-robot
-
- 
-
-
-#(x.3)应用已经运行
-   可在文件夹Logs 中查看日志
-
-
-
--------------------
-#常用命令
-
-#查看容器logs
-docker logs sers-demo-robot
-
-#在容器内执行命令行
-docker  exec -it sers-demo-robot bash
-
-#停止容器
-docker stop sers-demo-robot
-
-#打开容器
-docker start sers-demo-robot
-
-#重启容器
-docker restart sers-demo-robot
-
-
-#删除容器
-docker rm sers-demo-robot -f
-
-

+ 0 - 58
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-demo-sersall/docker部署sers-demo-sersall.txt

@@ -1,58 +0,0 @@
-docker部署sers-demo-sersall
- 
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
- 
-
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers-demo-sersall
-docker run --name=sers-demo-sersall --restart=always -d --net=host\
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/ServiceCenter/appsettings.json \
--v $PWD/Logs:/root/app/ServiceCenter/Logs \
--v $PWD/Data:/root/app/ServiceCenter/Data \
-serset/sers-demo-sersall
-cd ..
-
-#精简
-docker run --name=sers-demo-sersall --restart=always -d --net=host serset/sers-demo-sersall
-
-
-#(x.3)应用已经运行
-   可在文件夹Logs 中查看日志
-
-
-#---------------------------------------
-#常用命令
-
-#查看容器logs
-docker logs sers-demo-sersall 
-
-#在容器内执行命令行
-docker  exec -it sers-demo-sersall  bash
-
-#停止容器
-docker stop sers-demo-sersall 
-
-#打开容器
-docker start sers-demo-sersall 
-
-#重启容器
-docker restart sers-demo-sersall 
-
-
-#删除容器
-docker rm sers-demo-sersall -f 
-
-

+ 0 - 60
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-demo/docker部署sers-demo.txt

@@ -1,60 +0,0 @@
-docker部署sers-demo
-
-
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
-
-
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers-demo
-docker run --name=sers-demo --restart=always -d \
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/Demo/appsettings.json \
--v $PWD/Logs:/root/app/Demo/Logs \
-serset/sers-demo
-cd ..
-
-#精简
-docker run --name=sers-demo --restart=always -d serset/sers-demo
-
-
- 
-#(x.3)应用已经运行
-   可在文件夹Logs 中查看日志
-
-
-
--------------------
-#常用命令
-
-#查看容器logs
-docker logs sers-demo
-
-#在容器内执行命令行
-docker  exec -it sers-demo bash
-
-#停止容器
-docker stop sers-demo
-
-#打开容器
-docker start sers-demo
-
-#重启容器
-docker restart sers-demo
-
-
-#删除容器
-docker rm sers-demo -f
-
-

+ 0 - 61
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-gateway/docker部署sers-gateway.txt

@@ -1,61 +0,0 @@
-docker部署sers-gateway
-
- 
-
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
- 
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers-gateway
-docker run --name=sers-gateway --restart=always -d \
--p 4582:4582 \
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/Gateway/appsettings.json \
--v $PWD/Logs:/root/app/Gateway/Logs \
--v $PWD/Data:/root/app/Gateway/Data \
-serset/sers-gateway
- 
-
-#精简
-docker run --name=sers-gateway --restart=always -d -p 4582:4582 serset/sers-gateway
-
-
-#(x.3)应用已经运行
-   可在文件夹Logs 中查看日志
-
-通信端口 tcp://ip:4582
-
--------------------
-#常用命令
-
-#查看容器logs
-docker logs sers-gateway
-
-#在容器内执行命令行
-docker  exec -it sers-gateway bash
-
-#停止容器
-docker stop sers-gateway
-
-#打开容器
-docker start sers-gateway
-
-#重启容器
-docker restart sers-gateway
-
-
-#删除容器
-docker rm sers-gateway -f
-
-

+ 0 - 61
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers-gover/docker部署sers-gover.txt

@@ -1,61 +0,0 @@
-docker部署sers-gover
- 
-
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
-
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers-gover
-docker run --name=sers-gover --restart=always -d \
--p 4581:4581 \
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/Gover/appsettings.json \
--v $PWD/Logs:/root/app/Gover/Logs \
-serset/sers-gover
-cd ..
- 
-#精简
-docker run --name=sers-gover --restart=always -d -p 4581:4581 serset/sers-gover
-
-
-#(x.3)应用已经运行
-   可在文件夹Logs 中查看日志
-
-
-通信端口 tcp://ip:4581
-
-
--------------------
-#常用命令
-
-#查看容器logs
-docker logs sers-gover
-
-#在容器内执行命令行
-docker  exec -it sers-gover bash
-
-#停止容器
-docker stop sers-gover
-
-#打开容器
-docker start sers-gover
-
-#重启容器
-docker restart sers-gover
-
-
-#删除容器
-docker rm sers-gover  -f
-
-

+ 0 - 66
Publish/ReleaseFile/SersDocker(2021-05-19)/docker部署Sers/sers/docker部署sers.txt

@@ -1,66 +0,0 @@
-docker部署sers-servicecenter
-
- 
-
----------------------------------
-#(x.1)文件
-  (x.1)把本文件所在目录中所有文件拷贝到宿主机
-  (x.2)修改配置文件 appsettings.json
- 
-
-
-#(x.2)创建容器并运行
-(--name 容器名称,可自定义)
-(--restart=always 自动重启)
-(-v /etc/localtime:/etc/localtime)挂载宿主机localtime文件解决容器时间与主机时区不一致的问题
-(-v $PWD/data:/data 将主机中当前目录下的data挂载到容器的/data)
-(--net=host 网络直接使用宿主机网络)(-p 6022:6022 端口映射)
-
-cd /root/docker
-
-cd sers
-docker run --name=sers --restart=always -d \
--p 4580:4580 -p 4501:4501 \
--v /etc/localtime:/etc/localtime \
--v $PWD/appsettings.json:/root/app/ServiceCenter/appsettings.json \
--v $PWD/Logs:/root/app/ServiceCenter/Logs \
--v $PWD/Data:/root/app/ServiceCenter/Data \
-serset/sers
-cd ..
-
-
-#精简
-docker run --name=sers --restart=always -d -p 4580:4580 -p 4501:4501 serset/sers
-
-gover     http://ip:4580
-通信端口 tcp://ip:4501
-
-
-
-#(x.3)应用已经运行
-   可在文件夹ServiceCenter/Logs 中查看日志
-
- 
-#---------------------------------------
-#常用命令
-
-#查看容器logs
-docker logs sers
-
-#在容器内执行命令行
-docker  exec -it sers bash
-
-#停止容器
-docker stop sers
-
-#打开容器
-docker start sers
-
-#重启容器
-docker restart sers
-
-
-#删除容器
-docker rm sers -f
-
-

+ 0 - 38
Publish/ReleaseFile/SersDocker(2021-05-19)/pack SersDocker.bat

@@ -1,38 +0,0 @@
-
-set netVersion=net6.0
-
-@echo "copy  SersDocker"
-xcopy  "..\PublishFile\SersDocker" "SersDocker" /e /i /r /y
-
-@echo "copy sers"
-xcopy  "SersPublish\%netVersion%\ServiceCenter\appsettings.json" "SersDocker\docker窒扰Sers\sers" 
-xcopy  "SersPublish\%netVersion%\ServiceCenter" "SersDocker\docker秶釬噩砉Sers\sers\root\app\ServiceCenter" /e /i /r /y
-
-
-@echo "copy sers-demo"
-xcopy  "SersPublish\%netVersion%\Demo\appsettings.json" "SersDocker\docker窒扰Sers\sers-demo" 
-xcopy  "SersPublish\%netVersion%\Demo" "SersDocker\docker秶釬噩砉Sers\sers-demo\root\app\Demo" /e /i /r /y
-
-@echo "copy sers-demo-robot"
-xcopy  "SersPublish\%netVersion%\Robot\appsettings.json" "SersDocker\docker窒扰Sers\sers-demo-robot" 
-xcopy  "SersPublish\%netVersion%\Robot" "SersDocker\docker秶釬噩砉Sers\sers-demo-robot\root\app\Robot" /e /i /r /y
-
-@echo "copy sers-demo-sersall"
-xcopy  "Sers揤聆\sers揤聆-等极揤聆%netVersion%\ServiceCenter\appsettings.json" "SersDocker\docker窒扰Sers\sers-demo-sersall" 
-xcopy  "Sers揤聆\sers揤聆-等极揤聆%netVersion%\ServiceCenter" "SersDocker\docker秶釬噩砉Sers\sers-demo-sersall\root\app\ServiceCenter" /e /i /r /y
-
-
-
-@echo "copy sers-gateway"
-xcopy  "SersPublish\%netVersion%\Gateway\appsettings.json" "SersDocker\docker窒扰Sers\sers-gateway" 
-xcopy  "SersPublish\%netVersion%\Gateway" "SersDocker\docker秶釬噩砉Sers\sers-gateway\root\app\Gateway" /e /i /r /y
-
-@echo "copy sers-gover"
-xcopy  "SersPublish\%netVersion%\Gover\appsettings.json" "SersDocker\docker窒扰Sers\sers-gover" 
-xcopy  "SersPublish\%netVersion%\Gover" "SersDocker\docker秶釬噩砉Sers\sers-gover\root\app\Gover" /e /i /r /y
-
-
-
-
-
-