File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
aws-golang-dynamo-stream-to-elasticsearch
aws-golang-s3-file-replicator
aws-golang-simple-http-endpoint
aws-golang-stream-kinesis-to-elasticsearch Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ functions := $(shell find functions -name \*main.go | awk -F'/' '{print $$2}')
55
66build : # # Build golang binaries
77 @for function in $( functions) ; do \
8- env GOOS=linux go build -ldflags=" -s -w" -o bin/$$ function functions/$$ function/main.go ; \
8+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/$$ function functions/$$ function/main.go ; \
99 done
Original file line number Diff line number Diff line change 11build :
22 dep ensure -v
3- env GOOS=linux go build -ldflags=" -s -w" -o bin/aws-golang-dynamo-stream-to-elasticsearch cmd/aws-golang-dynamo-stream-to-elasticsearch/main.go
3+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/aws-golang-dynamo-stream-to-elasticsearch cmd/aws-golang-dynamo-stream-to-elasticsearch/main.go
44
55.PHONY : clean
66clean :
Original file line number Diff line number Diff line change 22
33build :
44 dep ensure -v
5- env GOOS=linux go build -ldflags=" -s -w" -o bin/getgeolocation getgeolocation/main.go
6- env GOOS=linux go build -ldflags=" -s -w" -o bin/getsearchlocation getsearchlocation/main.go
7- env GOOS=linux go build -ldflags=" -s -w" -o bin/getnearbylocation getnearbylocation/main.go
8- env GOOS=linux go build -ldflags=" -s -w" -o bin/getgeodetail getgeodetail/main.go
5+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/getgeolocation getgeolocation/main.go
6+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/getsearchlocation getsearchlocation/main.go
7+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/getnearbylocation getnearbylocation/main.go
8+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/getgeodetail getgeodetail/main.go
99
1010clean :
1111 rm -rf ./bin ./vendor Gopkg.lock
Original file line number Diff line number Diff line change 22
33build :
44 dep ensure -v
5- env GOOS=linux go build -ldflags=" -s -w" -o bin/getBin getFolder/getExample.go
6- env GOOS=linux go build -ldflags=" -s -w" -o bin/postBin postFolder/postExample.go
7- env GOOS=linux go build -ldflags=" -s -w" -o bin/getQueryBin getFolder/getQueryExample.go
5+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/getBin getFolder/getExample.go
6+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/postBin postFolder/postExample.go
7+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/getQueryBin getFolder/getQueryExample.go
88
99clean :
1010 rm -rf ./bin ./vendor Gopkg.lock
Original file line number Diff line number Diff line change 22
33build : gomodgen
44 export GO111MODULE=on
5- env GOOS=linux go build -ldflags=" -s -w" -o bin/replicator src/main.go
5+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/replicator src/main.go
66
77clean :
88 rm -rf ./bin ./vendor Gopkg.lock
Original file line number Diff line number Diff line change 11build :
22 dep ensure -v
3- env GOOS=linux go build -ldflags=" -s -w" -o bin/hello hello/main.go
4- env GOOS=linux go build -ldflags=" -s -w" -o bin/world world/main.go
3+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/hello hello/main.go
4+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/world world/main.go
55
66.PHONY : clean
77clean :
Original file line number Diff line number Diff line change 11build :
22 dep ensure -v
3- env GOOS=linux go build -ldflags=" -s -w" -o bin/stream main.go
3+ env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/stream main.go
44
55.PHONY : clean
66clean :
You can’t perform that action at this time.
0 commit comments