-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_examples.sh
executable file
·56 lines (42 loc) · 1.15 KB
/
build_examples.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
npm install
./vf-os.sh dev
cd assetA
docker build . -t asset-a
cd ../assetB
docker build . -t asset-b
cd ../assetC
docker build . -t asset-c
cd ../
mkdir -p ./testImages
cd ./testImages
../label2manifest.js asset-a true
docker image rm asset-a
docker image rm localhost:5000/asset-a
../label2manifest.js asset-b true
docker image rm asset-b
docker image rm localhost:5000/asset-b
../label2manifest.js asset-c true
docker image rm asset-c
docker image rm localhost:5000/asset-c
cd ../testImages
../manifest2label.js asset-a.zip true true
../manifest2label.js asset-b.zip true true
../manifest2label.js asset-c.zip true true
cd ../
./installAsset.js localhost:5000/asset-b AssetB false
./installAsset.js localhost:5000/asset-a AssetA false
./installAsset.js localhost:5000/asset-c AssetC false
cd esp_storage
docker build . -t esp_webdav_storage
cd ../
./installAsset.js esp_webdav_storage esp_webdav_storage false
cd esp_steelBar
docker build . -t esp_steelbar
cd ../
./installAsset.js esp_steelbar esp_steelbar false
cd mqtt_amqp_bridge
docker build . -t mqtt_amqp_bridge
cd ../
./installAsset.js mqtt_amqp_bridge mqtt_amqp_bridge false
./stop.sh