summaryrefslogtreecommitdiffhomepage
path: root/test/lib/fabfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/fabfile.py')
-rw-r--r--test/lib/fabfile.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/lib/fabfile.py b/test/lib/fabfile.py
index c50b7e22..660b612f 100644
--- a/test/lib/fabfile.py
+++ b/test/lib/fabfile.py
@@ -11,11 +11,13 @@ def make_gobgp_ctn(ctx, tag='gobgp',
if local_gobgp_path == '':
local_gobgp_path = os.getcwd()
+ local('CGO_ENABLED=0 go build "-ldflags=-s -w -buildid=" ./cmd/gobgp')
+ local('CGO_ENABLED=0 go build "-ldflags=-s -w -buildid=" ./cmd/gobgpd')
+
c = CmdBuffer()
c << 'FROM {0}'.format(from_image)
- c << 'ENV GO111MODULE on'
- c << 'ADD gobgp /tmp/gobgp'
- c << 'RUN cd /tmp/gobgp && go install ./cmd/gobgpd ./cmd/gobgp'
+ c << 'COPY gobgp/gobgpd /go/bin/gobgpd'
+ c << 'COPY gobgp/gobgp /go/bin/gobgp'
rindex = local_gobgp_path.rindex('gobgp')
if rindex < 0: