Skip to content

Commit

Permalink
Build arm64 and ppc64le clients
Browse files Browse the repository at this point in the history
  • Loading branch information
mtharp committed Feb 18, 2019
1 parent 4086434 commit ab87323
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmdline/workercmd/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (h *handler) healthCheck() {
for {
// check if parent process went away
if os.Getppid() != ppid {
log.Println("error: parent process disappeared, worker stopping")
log.Println("error: parent process disappeared, worker stopping", ppid, os.Getppid())
h.shutdown()
return
}
Expand Down
8 changes: 5 additions & 3 deletions scripts/Dockerfile.clientbuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN dep ensure -vendor-only
COPY . .
RUN mkdir /out
ARG ldflags
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-linux-amd64
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-darwin-amd64
RUN CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-windows-amd64.exe
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-linux-amd64
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-linux-arm64
RUN CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-linux-ppc64le
RUN CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-darwin-amd64
RUN CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -a -installsuffix nocgo -ldflags "$ldflags" -tags clientonly -o /out/relic-client-windows-amd64.exe
1 change: 1 addition & 0 deletions scripts/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ xgo \
--out="build/relic" \
-ldflags "$ldflags" \
.
sudo chown $(id -u) build/*

mv build/relic-darwin-*-amd64 build/relic-darwin-amd64
mv build/relic-windows-*-amd64.exe build/relic-windows-amd64.exe
Expand Down

0 comments on commit ab87323

Please sign in to comment.