forked from LaconicNetwork/kompose
Merge pull request #227 from ngtuna/go-getable
make kompose go get-able
This commit is contained in:
@@ -40,6 +40,12 @@ tar -xvf kompose_linux-amd64.tar.gz --strip 1
|
|||||||
sudo mv kompose /usr/local/bin
|
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
|
## Bash completion
|
||||||
Running this below command in order to benefit from bash completion
|
Running this below command in order to benefit from bash completion
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ rm -f $OUT_FILE
|
|||||||
go build \
|
go build \
|
||||||
"${BUILD_FLAGS[@]}" \
|
"${BUILD_FLAGS[@]}" \
|
||||||
-o $OUT_FILE \
|
-o $OUT_FILE \
|
||||||
./cli/main
|
main.go
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Build successful. Program saved as ${OUT_FILE}"
|
echo "Build successful. Program saved as ${OUT_FILE}"
|
||||||
|
|||||||
+1
-1
@@ -24,4 +24,4 @@ rm -f kompose*
|
|||||||
gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \
|
gox "${OS_PLATFORM_ARG[@]}" "${OS_ARCH_ARG[@]}" \
|
||||||
-output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \
|
-output="bundles/kompose_{{.OS}}-{{.Arch}}/kompose" \
|
||||||
"${BUILD_FLAGS[@]}" \
|
"${BUILD_FLAGS[@]}" \
|
||||||
./cli/main
|
main.go
|
||||||
|
|||||||
Reference in New Issue
Block a user