-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (26 loc) · 860 Bytes
/
makefile
File metadata and controls
31 lines (26 loc) · 860 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
IMG_NAME=${building}
COMMAND_RUN=docker run \
--name ${IMG_NAME} \
--detach=false \
--network host \
-e DISPLAY=${DISPLAY} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--rm \
-v `pwd`/transactivecontrol/MarketAgents:/home/volttron/volttron/config \
-v `pwd`/upgrade-scripts:/home/volttron/volttron/upgrade-scripts \
-v `pwd`/volttron-GS:/home/volttron/volttron/transactivecontrol \
-v `pwd`/source/bcvtb:/home/volttron/volttron/bcvtb \
-v `pwd`/log:/home/volttron/volttron/log \
-i \
-t \
${IMG_NAME} /bin/bash -c
build:
docker build --build-arg buildings=${IMG_NAME} --network host --no-cache --rm -t ${IMG_NAME} .
remove-image:
docker rmi ${IMG_NAME}
run:
$(COMMAND_RUN) \
" bash"
run_b1:
$(COMMAND_RUN) \
"bash upgrade-scripts/upgrade-b1-tns && bash"