-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunnerfile.sh
More file actions
executable file
·34 lines (31 loc) · 828 Bytes
/
Copy pathrunnerfile.sh
File metadata and controls
executable file
·34 lines (31 loc) · 828 Bytes
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
#!/usr/bin/env bash
cd "$(dirname "$0")" || exit
source ./runner/src/runner.sh
task_build() {
nohup docker build -t danobot/rfgateway . &
echo "Build running in background. Access by tailing nohup.out file. "
}
task_push() {
docker push danobot/rfgateway
}
task_receivelogs() {
docker logs -f rx-rf-gateway
}
task_sendlogs() {
docker logs -f tx-rf-gateway
}
task_pushc() {
docker push danobot/crfgateway
}
task_buildc() {
nohup docker build -t danobot/crfgateway -f c-implementation/Dockerfile &
echo "Build running in background. Access by tailing nohup.out file. "
}
task_runc(){
cd c-implementation
docker-compose up
}
task_run(){
docker-compose up
echo "Spun up two containers, one for receiving RF traffic and emitting MQTT. The other for receiving MQTT commands to be sent out as RF signals."
}