From 0fe3fd5dd12869c0e0b8d43fe90ec1f501e1f0de Mon Sep 17 00:00:00 2001 From: Maxim Kupriianov Date: Tue, 15 Dec 2015 20:56:44 +0300 Subject: [PATCH] Docs for docker image. --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 9dd629f..3c9c829 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,23 @@ PASS ok github.com/go-python/gopy 2.135s ``` +## Binding generation using Docker (for cross-platform builds) + +``` +$ cd github.com/go-python/gopy/_examples/hi +$ docker run -it --rm -v `pwd`:/go/src/in -v `pwd`:/out xlab/gopy app bind -output=/out in +$ file hi.so +hi.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped +``` + +The docker image can also be built on local machine: + +``` +$ cd $GOPATH/src/github.com/go-python/gopy +$ docker build -t go-python/gopy . +$ docker run -it --rm go-python/gopy +``` + ## Limitations - wrap `go` structs into `python` classes **[DONE]**