From 0b021a22b8a8c5e7e9f9cb840c5268a77eaa6417 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sat, 22 Aug 2015 13:05:42 +0900 Subject: test: enable to change base image of gobgp docker image $ fab -f ./lib/base.py make_gobgp_ctn:tag=gobgp,from_image=gobgp Signed-off-by: ISHIDA Wataru --- test/scenario_test/lib/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/scenario_test/lib/base.py b/test/scenario_test/lib/base.py index f9bdae12..778f3ce4 100644 --- a/test/scenario_test/lib/base.py +++ b/test/scenario_test/lib/base.py @@ -62,12 +62,12 @@ class CmdBuffer(list): return self.delim.join(self) -def make_gobgp_ctn(tag='gobgp', local_gobgp_path=''): +def make_gobgp_ctn(tag='gobgp', local_gobgp_path='', from_image='golang:1.4'): if local_gobgp_path == '': local_gobgp_path = os.getcwd() c = CmdBuffer() - c << 'FROM golang:1.4' + c << 'FROM {0}'.format(from_image) c << 'ADD gobgp /go/src/github.com/osrg/gobgp/' c << 'RUN go get github.com/osrg/gobgp/gobgpd' c << 'RUN go install github.com/osrg/gobgp/gobgpd' -- cgit v1.2.3