@@ -38,13 +38,13 @@ checks:
38
38
39
39
run-build : deps checks clean
40
40
cd ${GOPATH} /src/github.com/contiv/netplugin && version/generate_version ${USE_RELEASE} && \
41
- cd /opt/gopath /src/github.com/contiv/netplugin && \
41
+ cd /$( GOPATH ) /src/github.com/contiv/netplugin && \
42
42
godep go install -v $(TO_BUILD ) && \
43
43
sudo cp contrib/completion/bash/netctl /etc/bash_completion.d/netctl
44
44
45
45
build :
46
46
make start
47
- vagrant ssh netplugin-node1 -c ' sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /opt/gopath /src/github.com/contiv/netplugin && make run-build"'
47
+ vagrant ssh netplugin-node1 -c ' sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /$(GOPATH) /src/github.com/contiv/netplugin && make run-build"'
48
48
make stop
49
49
50
50
clean : deps
@@ -78,15 +78,15 @@ stop:
78
78
79
79
demo :
80
80
vagrant up
81
- vagrant ssh netplugin-node1 -c ' sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /opt/gopath /src/github.com/contiv/netplugin && make run-build"'
82
- vagrant ssh netplugin-node1 -c ' nohup bash -lc "sudo /opt/gopath /bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
83
- vagrant ssh netplugin-node2 -c ' nohup bash -lc "sudo /opt/gopath /bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
81
+ vagrant ssh netplugin-node1 -c ' sudo -i bash -lc "source /etc/profile.d/envvar.sh && cd /$(GOPATH) /src/github.com/contiv/netplugin && make run-build"'
82
+ vagrant ssh netplugin-node1 -c ' nohup bash -lc "sudo /$(GOPATH) /bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
83
+ vagrant ssh netplugin-node2 -c ' nohup bash -lc "sudo /$(GOPATH) /bin/netplugin -plugin-mode docker -vlan-if eth2 2>&1> /tmp/netplugin.log &"'
84
84
sleep 10
85
- vagrant ssh netplugin-node1 -c ' nohup bash -lc "/opt/gopath /bin/netmaster 2>&1> /tmp/netmaster.log &"'
85
+ vagrant ssh netplugin-node1 -c ' nohup bash -lc "/$(GOPATH) /bin/netmaster 2>&1> /tmp/netmaster.log &"'
86
86
sleep 10
87
87
88
88
ssh :
89
- @vagrant ssh netplugin-node1 -c ' bash -lc "cd /opt/gopath /src/github.com/contiv/netplugin/ && bash"' || echo ' Please run "make demo"'
89
+ @vagrant ssh netplugin-node1 -c ' bash -lc "cd /$(GOPATH) /src/github.com/contiv/netplugin/ && bash"' || echo ' Please run "make demo"'
90
90
91
91
unit-test : stop clean build
92
92
./scripts/unittests -vagrant
@@ -95,7 +95,7 @@ centos-tests:
95
95
CONTIV_NODE_OS=centos make clean build unit-test sanity-test stop
96
96
97
97
sanity-test : start
98
- vagrant ssh netplugin-node1 -c ' bash -lc "cd /opt/gopath /src/github.com/contiv/netplugin/scripts/python && PYTHONIOENCODING=utf-8 ./sanity.py -nodes 192.168.2.10,192.168.2.11"'
98
+ vagrant ssh netplugin-node1 -c ' bash -lc "cd /$(GOPATH) /src/github.com/contiv/netplugin/scripts/python && PYTHONIOENCODING=utf-8 ./sanity.py -nodes 192.168.2.10,192.168.2.11"'
99
99
100
100
host-build :
101
101
@echo " dev: making binaries..."
0 commit comments