You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by lz...@apache.org on 2017/08/30 01:38:12 UTC

[incubator-openwhisk-wskdeploy] branch master updated: Update the README with more instructions of building binaries (#410)

This is an automated email from the ASF dual-hosted git repository.

lz1982 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 7465137  Update the README with more instructions of building binaries (#410)
7465137 is described below

commit 7465137ce69eadbbe4c43642da05d6f7806fc2dd
Author: Vincent <sh...@us.ibm.com>
AuthorDate: Tue Aug 29 21:38:10 2017 -0400

    Update the README with more instructions of building binaries (#410)
---
 README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/README.md b/README.md
index db6c499..14d0129 100644
--- a/README.md
+++ b/README.md
@@ -62,6 +62,15 @@ $ cd src/github.com/apache/incubator-openwhisk-wskdeploy/
 $ go build -o wskdeploy
 ```
 
+If you would like to build the binary for a specific operating system, you may add the arguments GOOS and GOARCH into the
+Go build command. You have to set GOARCH to amd64 or 386. GOOS can be set to "linux" "darwin" or "windows".
+
+For example, run the following command to build the binary for 64-bit Linux:
+
+```sh
+$ GOOS=linux GOARCH=amd64 go build -o wskdeploy
+```
+
 If you want to build with the godep tool, please execute the following commands.
 
 ```sh
@@ -110,6 +119,15 @@ commands will start the wskdeploy cross compile for your specific OS platform in
 
 7. After build success, you should find a correct binary under current /bin dir of you openwhisk-deploy clone dir.
 
+If you would like to build the binaries available for all the operating systems and architectures, run the following command:
+
+```sh
+$ ./gradlew distDocker -PcrossCompileCLI=true
+```
+
+Then, you will find the binaries and their compressed packages generated under the folder bin/<os>/<cpu arc>/ for each
+operating system and CPU architecture pair. We supports both amd64 and 386 for Linux, Mac and Windows operating systems.
+
 # Debugging
 
 ### Enable additional trace in Go client

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].