forked from iioter/iotgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto-build.sh
29 lines (21 loc) · 1.06 KB
/
auto-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
echo start
tag="0.9.2"
echo $tag
docker build -t iotgateway .
docker stop 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 cp 3d iotgateway:app/wwwroot/
docker cp drivers iotgateway:app/
docker cp IoTGateway/iotgateway.db iotgateway:app/
docker cp IoTGateway/Quickstarts.ReferenceServer.Config.xml iotgateway:app/
docker restart iotgateway
docker commit iotgateway registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:$tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest
docker push registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest
docker tag registry.cn-hangzhou.aliyuncs.com/iotgateway/iotgateway:latest 15261671110/iotgateway:$tag
docker push 15261671110/iotgateway:$tag
docker tag 15261671110/iotgateway:$tag 15261671110/iotgateway:latest
docker push 15261671110/iotgateway:latest