Skip to content

Commit

Permalink
Fix Dockerfile + release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Sep 20, 2017
1 parent a8347de commit a4f6d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ MAINTAINER Mayflower GmbH
ADD . /go/src/github.com/mayflower/docker-ls
WORKDIR /go/src/github.com/mayflower/docker-ls

RUN make clean && make install && cp /go/src/github.com/mayflower/docker-ls/build/bin/* /usr/local/bin/
RUN go generate github.com/mayflower/docker-ls/lib/... && go install github.com/mayflower/docker-ls/cli/...
5 changes: 1 addition & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ suffix_windows=".exe"
package_prefix="github.com/mayflower/docker-ls"
packages="cli/docker-ls cli/docker-rm"

make install || exit 1
export GOPATH="`pwd`/build"

echo

test -d release && rm -fr release
Expand All @@ -37,7 +34,7 @@ for os in $os_list; do
for package in $packages; do
full_package="$package_prefix/$package"
binary="$target_dir/${full_package##*/}$suffix"
CGO_ENABLED=0 GOOS="$os" GOARM=5 GOARCH="$arch" go build -installsuffix no_cgo -o "$binary" "$full_package" || exit 1
CGO_ENABLED=0 GOOS="$os" GOARM=5 GOARCH="$arch" go build -o "$binary" "$full_package" || exit 1
done

echo archiving for $os $arch
Expand Down

0 comments on commit a4f6d68

Please sign in to comment.