From d68bc4045845bac496deccc2111df721acf46d48 Mon Sep 17 00:00:00 2001 From: Tuna Date: Thu, 20 Oct 2016 23:10:47 +0200 Subject: [PATCH 1/2] make kompose get-able --- cli/main/main.go => main.go | 0 script/binary | 2 +- script/binary-cross | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename cli/main/main.go => main.go (100%) diff --git a/cli/main/main.go b/main.go similarity index 100% rename from cli/main/main.go rename to main.go diff --git a/script/binary b/script/binary index ee1c21a3..713caee2 100755 --- a/script/binary +++ b/script/binary @@ -12,7 +12,7 @@ rm -f $OUT_FILE go build \ "${BUILD_FLAGS[@]}" \ -o $OUT_FILE \ - ./cli/main + main.go if [ $? -eq 0 ]; then echo "Build successful. Program saved as ${OUT_FILE}" diff --git a/script/binary-cross b/script/binary-cross index ee3d11ae..4c2fbfda 100644 --- a/script/binary-cross +++ b/script/binary-cross @@ -24,4 +24,4 @@ rm -f kompose* gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \ -output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \ "${BUILD_FLAGS[@]}" \ - ./cli/main + main.go From 6eb8c4ca76e27451881cf15e34a04bb22c892aa4 Mon Sep 17 00:00:00 2001 From: Tuna Date: Fri, 28 Oct 2016 01:25:03 +0200 Subject: [PATCH 2/2] update README properly --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0bd6196d..08bd3f6f 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ tar -xvf kompose_linux-amd64.tar.gz --strip 1 sudo mv kompose /usr/local/bin ``` +Otherwise, you could take the latest development package from master branch. Make sure your PATH includes the $GOPATH/bin directory so your commands can be easily used: +```console +$ go get github.com/kubernetes-incubator/kompose +$ export PATH=$PATH:$GOPATH/bin +``` + ## Bash completion Running this below command in order to benefit from bash completion