This repository was archived by the owner on Aug 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
83 lines (42 loc) · 2.51 KB
/
Copy pathnotes.txt
File metadata and controls
83 lines (42 loc) · 2.51 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Steps to push to registry :
1) cat TremiumDevEditor.json | docker login -u _json_key --password-stdin https://gcr.io
2) sudo docker tag quickstart-image gcr.io/tremium/quickstart-image:tag1
3) sudo docker push gcr.io/tremium/quickstart-image:tag1
Steps to pull from registry :
1) cat TremiumDevEditor.json | docker login -u _json_key --password-stdin https://gcr.io
2) docker pull [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
- ex : docker pull gcr.io/tremium/dev_test_node
Docker image naming convention :
(organisation)_(device type)_(mounted machine)_(*index)_(component)
- (organisation) : name of the client organisation
- (device type) : Tremium Node or Tremium Hub
- (mounted machine) : type of machinerie the device is mounted on
- (index) : (optional) specific index of the Node device (this is for targeted updates)
- (component) : name of the software component
ex : dev_node_compressor_communication-component
*** in tar format : dev_node_compressor_communication-component.tar
Docker (Node and Hub) ID naming convention :
(organisation)_(device type)_(mounted machine)_(index)
- (organisation) : name of the client organisation
- (device type) : Tremium Node or Tremium Hub
- (mounted machine) : type of machinerie the device is mounted on
- (index) : number unique to the device in the organisation
ex : dev_node_compressor_5
Bluetooth defined messages :
CHECK_AVAILABLE_UPDATES (node id) :
- (node id) : id of the node requesting an update
* returns a list of available docker images (most recent for every component).
* its the nodes job to check if one of the returned images should be "loaded"
GET_UPDATE (image file name) :
- (image file name) : name of the archive image file to transafer
* transfers the target file to the client (Tremium Node)
STORE_FILE (data file name) :
- (file name) : name of the file to be transafered to hub storage
* transafers the target file to the server (Tremium Hub)
///////////////////////////////////////////////////////////////////////////////////////////////////////
Docker commands and stuff
Running commands inside a container :
--> docker exec -it (container name) (command)
--> docker exec -it feaf7de9c841 bash -c 'python bluetooth-interface.py "$TREMIUM_CONFIG_FILE"'
Docker monitor resource usage :
--> docker stats (container id)