summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario_test/lib')
-rw-r--r--test/scenario_test/lib/base.py4
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'