-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to provided.al2 runtime (#16)
Update the service runtime ahead of the deprecation of the go1.x runtime by AWS. * disable CGO during build to avoid glibc version mismatch * rename the executable `bootstrap` and place it in the task root directory as required by the new runtime Closes #15
- Loading branch information
Showing
2 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
build: export GOOS=linux | ||
build: | ||
go build -o bin/drain cmd/drain/main.go | ||
@du -h bin/drain | ||
GOOS=linux | ||
GOARCH=amd64 | ||
CGO_ENABLED=0 | ||
export | ||
|
||
build: | ||
go build -tags lambda.norpc -o bootstrap cmd/drain/main.go | ||
@du -h bootstrap | ||
|
||
deploy: build | ||
sls deploy -v | ||
|
||
outdated-deps: ## get list of outdated direct dependencies | ||
@go list -u -f '{{if and (.Update) (not .Indirect)}}{{.}}{{end}}' -m all | ||
@go list -u -f '{{if and (.Update) (not .Indirect)}}{{.}}{{end}}' -m all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters