forked from mattsm/boardfarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
boardfarm_config_example.json
89 lines (89 loc) · 4.01 KB
/
boardfarm_config_example.json
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
84
85
86
87
88
89
{
"rpi3-1": {
"board_type": "rpi3",
"conn_cmd": "cu -l /dev/ttyUSB1 -s 115200",
"devices": [
{
"type": "debian",
"name": "wan",
"pre_cmd_host": "docker build -t bft:node bft-node",
"cmd": "docker run --name wan --privileged -it bft:node /bin/bash",
"post_cmd_host": "sudo ip link set netns $(docker inspect --format '{{.State.Pid}}' wan) dev enx00249b14dc6e",
"post_cmd": "ip link set enx00249b14dc6e name eth1",
"cleanup_cmd": "docker stop wan; docker rm wan; sudo ip link set dev enx00249b14dc6e down",
"color": "cyan",
"options": "tftpd-server"
},
{
"type": "debian",
"name": "lan",
"pre_cmd_host": "docker build -t bft:node bft-node",
"cmd": "docker run --name lan --privileged -it bft:node /bin/bash",
"post_cmd_host": "sudo ip link set netns $(docker inspect --format '{{.State.Pid}}' lan) dev enxc05627904e8c",
"post_cmd": "ip link set enxc05627904e8c name eth1",
"cleanup_cmd": "docker stop lan; docker rm lan; sudo ip link set dev enxc05627904e8c down",
"color": "blue"
}
],
"connection_type": "local_serial",
"notes": "Rpi3 device with docker containers attached to WAN/LAN"
},
"qemux86-1": {
"board_type": "qemux86",
"conn_cmd": "sudo qemu-system-i386 -m 256 -nographic --enable-kvm -netdev tap,id=wan,ifname=${wan_iface} -device e1000,netdev=wan -netdev tap,id=lan,ifname=${lan_iface} -device e1000,netdev=lan",
"devices": [
{
"type": "debian",
"name": "wan",
"pre_cmd_host": "docker build -t bft:node bft-node",
"cmd": "docker run --name wan-${uniq_id} --privileged -it bft:node /bin/bash",
"post_cmd_host": "sudo ip link set netns $(docker inspect --format '{{.State.Pid}}' wan-${uniq_id}) dev ${wan_iface}",
"post_cmd": "ip link set ${wan_iface} name eth1",
"cleanup_cmd": "docker stop wan-${uniq_id}; docker rm wan-${uniq_id}",
"color": "cyan",
"options": "tftpd-server"
},
{
"type": "debian",
"name": "lan",
"pre_cmd_host": "docker build -t bft:node bft-node",
"cmd": "docker run --name lan-${uniq_id} --privileged -it bft:node /bin/bash",
"post_cmd_host": "sudo ip link set netns $(docker inspect --format '{{.State.Pid}}' lan-${uniq_id}) dev ${lan_iface}",
"post_cmd": "ip link set ${lan_iface} name eth1",
"cleanup_cmd": "docker stop lan-${uniq_id}; docker rm lan-${uniq_id}",
"color": "blue"
}
],
"connection_type": "local_serial",
"notes": "QEMU emulated devices"
},
"new_device": {
"board_type": "Unknown",
"conn_cmd": "cu -l /dev/ttyUSB1 -s 115200",
"devices": [
{
"type": "debian",
"name": "wan",
"pre_cmd_host": "docker build -t bft:node bft-node",
"cmd": "docker run --name wan --privileged -it bft:node /bin/bash",
"post_cmd_host": "sudo ip link set netns $(docker inspect --format '{{.State.Pid}}' wan) dev enx00249b14dc6e",
"post_cmd": "ip link set enx00249b14dc6e name eth1",
"cleanup_cmd": "docker stop wan; docker rm wan; sudo ip link set dev enx00249b14dc6e down",
"color": "cyan",
"options": "tftpd-server"
},
{
"type": "debian",
"name": "lan",
"pre_cmd_host": "docker build -t bft:node bft-node",
"cmd": "docker run --name lan --privileged -it bft:node /bin/bash",
"post_cmd_host": "sudo ip link set netns $(docker inspect --format '{{.State.Pid}}' lan) dev enxc05627904e8c",
"post_cmd": "ip link set enxc05627904e8c name eth1",
"cleanup_cmd": "docker stop lan; docker rm lan; sudo ip link set dev enxc05627904e8c down",
"color": "blue"
}
],
"connection_type": "local_serial",
"notes": "Unknown device with docker containers attached to WAN/LAN"
}
}