docker shell
This commit is contained in:
parent
fb53dbd7d0
commit
9c35ca74f8
@ -1,15 +1,28 @@
|
|||||||
#!/bin/bash
|
|
||||||
echo start
|
echo start
|
||||||
|
tag="0.8.1"
|
||||||
|
echo $tag
|
||||||
docker build -t iotgateway .
|
docker build -t iotgateway .
|
||||||
|
|
||||||
docker stop iotgateway
|
docker stop iotgateway
|
||||||
docker rm iotgateway
|
docker rm iotgateway
|
||||||
|
|
||||||
docker run -d --restart always --name iotgateway -p 518:518 -p 1888:1888 -p 62541:62541 -p 503:503 iotgateway
|
docker run -d --restart always --name iotgateway -p 518:518 -p 1888:1888 -p 62541:62541 -p 503:503 iotgateway
|
||||||
|
|
||||||
docker cp 3d iotgateway:app/wwwroot/
|
docker cp 3d iotgateway:app/wwwroot/
|
||||||
docker cp drivers iotgateway:app/
|
docker cp drivers iotgateway:app/
|
||||||
docker cp IoTGateway/iotgateway.db iotgateway:app/
|
docker cp IoTGateway/iotgateway.db iotgateway:app/
|
||||||
docker cp IoTGateway/Quickstarts.ReferenceServer.Config.xml iotgateway:app/
|
docker cp IoTGateway/Quickstarts.ReferenceServer.Config.xml iotgateway:app/
|
||||||
|
|
||||||
docker restart iotgateway
|
docker restart iotgateway
|
||||||
docker commit iotgateway registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm
|
|
||||||
|
docker commit iotgateway registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm-$tag
|
||||||
|
docker push registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm-$tag
|
||||||
|
|
||||||
|
docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm-$tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm
|
||||||
docker push registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm
|
docker push registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm
|
||||||
docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm 15261671110/iotgateway:arm
|
|
||||||
docker push 15261671110/iotgateway:arm
|
docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:arm 15261671110/iotgateway:arm-$tag
|
||||||
|
docker push 15261671110/iotgateway:arm-$tag
|
||||||
|
|
||||||
|
docker tag 15261671110/iotgateway:arm-$tag 15261671110/iotgateway:arm
|
||||||
|
docker push 15261671110/iotgateway:arm
|
||||||
|
@ -1,15 +1,29 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo start
|
echo start
|
||||||
|
tag="0.8.1"
|
||||||
|
echo $tag
|
||||||
docker build -t iotgateway .
|
docker build -t iotgateway .
|
||||||
|
|
||||||
docker stop iotgateway
|
docker stop iotgateway
|
||||||
docker rm iotgateway
|
docker rm iotgateway
|
||||||
|
|
||||||
docker run -d --restart always --name iotgateway -p 518:518 -p 1888:1888 -p 62541:62541 -p 503:503 iotgateway
|
docker run -d --restart always --name iotgateway -p 518:518 -p 1888:1888 -p 62541:62541 -p 503:503 iotgateway
|
||||||
|
|
||||||
docker cp 3d iotgateway:app/wwwroot/
|
docker cp 3d iotgateway:app/wwwroot/
|
||||||
docker cp drivers iotgateway:app/
|
docker cp drivers iotgateway:app/
|
||||||
docker cp IoTGateway/iotgateway.db iotgateway:app/
|
docker cp IoTGateway/iotgateway.db iotgateway:app/
|
||||||
docker cp IoTGateway/Quickstarts.ReferenceServer.Config.xml iotgateway:app/
|
docker cp IoTGateway/Quickstarts.ReferenceServer.Config.xml iotgateway:app/
|
||||||
|
|
||||||
docker restart iotgateway
|
docker restart iotgateway
|
||||||
docker commit iotgateway registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway
|
|
||||||
docker push registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway
|
docker commit iotgateway registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:$tag
|
||||||
docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway 15261671110/iotgateway
|
docker push registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:$tag
|
||||||
docker push 15261671110/iotgateway
|
|
||||||
|
docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:$tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:latest
|
||||||
|
docker push registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:latest
|
||||||
|
|
||||||
|
docker tag registry.cn-hangzhou.aliyuncs.com/wanghaidong/iotgateway:latest 15261671110/iotgateway:$tag
|
||||||
|
docker push 15261671110/iotgateway:$tag
|
||||||
|
|
||||||
|
docker tag 15261671110/iotgateway:$tag 15261671110/iotgateway:latest
|
||||||
|
docker push 15261671110/iotgateway:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user