This commit is contained in:
wenyongda 2022-11-23 17:02:40 +08:00
parent c12c89bf47
commit 7cc0477623

View File

@ -185,6 +185,38 @@ docker run --name xiaodaerpvbenvue -p 81:80 -p 444:443 -d --privileged=true -v /
![image-20221122174638567](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221122174638567.png) ![image-20221122174638567](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221122174638567.png)
授权策略选择`项目矩阵授权策略`
分配以下权限 分配以下权限
![image-20221122174805834](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221122174805834.png) ![image-20221122174805834](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221122174805834.png)
## Jenkins部署dotNet 6项目到远程Linux服务器上
系统管理 -> 插件管理 安装`Publish Over SSH`插件
安装好后 在 系统管理 -> 系统配置中设置`SSH Servers`
![image-20221123095111849](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221123095111849.png)
并点击高级
![image-20221123095205119](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221123095205119.png)
设置密码
构建步骤
![image-20221123095510632](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20221123095510632.png)
```shell
cd /root/download
pwd
docker stop xiaodaerpnetcore
docker rm xiaodaerpnetcore
docker image rm xiaodaerp/netcore
docker image build -f ./XiaodaERP/Dockerfile -t xiaodaerp/netcore .
docker images
docker run --name xiaodaerpnetcore -p 7274:80 -d xiaodaerp/netcore
```