diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-22 13:05:42 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-08-22 13:07:13 +0900 |
commit | 0b021a22b8a8c5e7e9f9cb840c5268a77eaa6417 (patch) | |
tree | c49daf4861c4b425ac1880b9a6ed8cb46f024954 /test/scenario_test | |
parent | da62a698664abaf0f8d321824b5ee69f2cf0fba4 (diff) |
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 <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test')
-rw-r--r-- | test/scenario_test/lib/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
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' |