diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-04-18 23:22:19 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-04-18 23:28:05 +0900 |
commit | e429c1aaf4dd85459dfafc1a5efac9d4778370f6 (patch) | |
tree | 8183bfcc48024473908a8b077fd1f680706ef4b4 /test/lib | |
parent | c2e7632397c2e49fdfb0f2b8e42d0321bf00c38d (diff) |
test: change Dockerfile for faster container build
use cache wisely.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lib/base.py b/test/lib/base.py index 4b4ff4ef..cc8346df 100644 --- a/test/lib/base.py +++ b/test/lib/base.py @@ -103,10 +103,11 @@ def make_gobgp_ctn(tag='gobgp', local_gobgp_path='', from_image='osrg/quagga'): c = CmdBuffer() c << 'FROM {0}'.format(from_image) + c << 'RUN go get github.com/osrg/gobgp/...' + c << 'RUN rm -rf github.com/osrg/gobgp' c << 'ADD gobgp /go/src/github.com/osrg/gobgp/' - c << 'RUN go get github.com/osrg/gobgp/gobgpd' + c << 'RUN go get github.com/osrg/gobgp/...' c << 'RUN go install github.com/osrg/gobgp/gobgpd' - c << 'RUN go get github.com/osrg/gobgp/gobgp' c << 'RUN go install github.com/osrg/gobgp/gobgp' rindex = local_gobgp_path.rindex('gobgp') |