File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ How to contribute to SocketPlane
7
7
8
8
- [ Golang] ( http://golang.org/doc/code.html )
9
9
- [ Docker] ( https://docs.docker.com/installation/#installation )
10
- - [ Fig ] ( http://www.fig.sh/install.html )
10
+ - [ Docker Compose ] ( http://www.fig.sh/install.html )
11
11
12
12
The system running Docker must have the ` openvswitch ` kernel module must be loaded for the test suite to be run. You can load it using ` modprobe openvswitch `
13
13
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ coverage:
8
8
goveralls -coverprofile=socketplane.coverprofile -service=$(CI_SERVICE ) -repotoken=$(COVERALLS_TOKEN )
9
9
10
10
test :
11
- fig up -d
12
- docker run --cap-add=NET_ADMIN --net=container:socketplane_ovs_1 --rm -v $(shell pwd) :/go/src/github.com/socketplane/socketplane -w /go/src/github.com/socketplane/socketplane davetucker/golang-ci:1.3 make test-local
13
- fig stop
11
+ docker-compose up -d
12
+ docker run --cap-add=NET_ADMIN --cap-add SYS_ADMIN -- net=container:socketplane_ovs_1 --rm -v $(shell pwd) :/go/src/github.com/socketplane/socketplane -w /go/src/github.com/socketplane/socketplane davetucker/golang-ci:1.3 make test-local
13
+ docker-compose stop
14
14
15
15
test-all :
16
- fig up -d
17
- docker run --cap-add=NET_ADMIN --net=container:socketplane_ovs_1 --rm -v $(shell pwd) :/go/src/github.com/socketplane/socketplane -w /go/src/github.com/socketplane/socketplane davetucker/golang-ci:1.3 make test-all-local
18
- fig stop
16
+ docker-compose up -d
17
+ docker run --cap-add=NET_ADMIN --cap-add SYS_ADMIN -- net=container:socketplane_ovs_1 --rm -v $(shell pwd) :/go/src/github.com/socketplane/socketplane -w /go/src/github.com/socketplane/socketplane davetucker/golang-ci:1.3 make test-all-local
18
+ docker-compose stop
19
19
20
20
test-local :
21
21
go test -covermode=count -test.short -coverprofile=daemon.cover.out -coverpkg=./... ./daemon
Original file line number Diff line number Diff line change 1
1
ovs :
2
2
image : davetucker/docker-ovs:2.3.0
3
- net : " host"
4
- ports :
5
- - " 6640:6640"
6
3
command : " /usr/bin/supervisord -n"
7
- privileged : true
4
+ cap_add :
5
+ - NET_ADMIN
You can’t perform that action at this time.
0 commit comments