Browse Source

修改docker 命令,升级版本号至1.0.1.8

develop-lawyerExampaper
胡超1 2 years ago
parent
commit
f33d35f4f6
  1. 4
      24Hour/24Hour.csproj
  2. 30
      24Hour/build/dockerbuild.txt

4
24Hour/24Hour.csproj

@ -8,8 +8,8 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<UserSecretsId>e485308c-2f05-470b-b0a4-68f1ec2b3412</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AssemblyVersion>1.0.1.6</AssemblyVersion>
<Version>1.0.1.6</Version>
<AssemblyVersion>1.0.1.8</AssemblyVersion>
<Version>1.0.1.8</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

30
24Hour/build/dockerbuild.txt

@ -12,8 +12,27 @@ create birdge:
docker network create twentytotwneyfour
for 24hourserver
docker run --name twentyfoursvc -p 8098:8098 -v /home/24hour/config/appsettings.json:/app/appsettings.json -v /etc/localtime:/etc/localtime --restart=always --link mysql --network twentytotwneyfour --network-alias twentyfour -d twentyfoursvc:1.0.1.5
docker run --name twentyfoursvc -p 8098:8098 -v /home/24hour/config/appsettings.json:/app/appsettings.json -v /etc/localtime:/etc/localtime --restart=always -d twentyfoursvc:1.0.1.5
docker run \
--name twentyfoursvc \
-p 8098:8098 \
-v /home/24hour/logs:/app/logs \
-v /home/24hour/wwwroot:/app/wwwroot \
-v /home/24hour/config/appsettings.json:/app/appsettings.json \n
-v /etc/localtime:/etc/localtime \
--restart=always \
--link mysql \
--network twentytotwneyfour \
--network-alias twentyfour \
-d twentyfoursvc:1.0.1.5
docker run
--name twentyfoursvc
-p 8098:8098
-v /home/24hour/config/appsettings.json:/app/appsettings.json
-v /etc/localtime:/etc/localtime
--restart=always
-d twentyfoursvc:1.0.1.5
for 2.0 proxyclient
docker run --name twentysysproxy -p 5194:5194 -v /home/twentysysproxy/config/appsettings.json:/app/appsettings.json -v /etc/localtime:/etc/localtime --restart=always --link mysql --network twentytotwneyfour --network-alias twentyproxy -d twentysysproxy:1.1
@ -27,13 +46,16 @@ docker run --name twentysysproxy -p 5194:5194 -v /home/twentysysproxy/config/app
docker run --name twentyfoursvc -p 8098:8098 \
docker run --name twentyfoursvc1018 \
-p 8098:8098 \
-v /home/24hour/config/appsettings.json:/app/appsettings.json \
-v /home/24hour/config/log4net.config:/app/log4net.config \
-v /home/24hour/config/caselist.txt:/app/caselist.txt \
-v /home/24hour/config/jzlist.txt:/app/jzlist.txt \
-v /home/24hour/wwwroot:/app/wwwroot \
-v /home/24hour/logs:/app/logs \
-v /etc/localtime:/etc/localtime \
--restart=always -d twentyfoursvc:1.0.1.5
--restart=always -d twentyfoursvc:1.0.1.8

Loading…
Cancel
Save