forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lambda-go): fix integ test (aws#17365)
The test was still using the old `lambci` image and this makes the integ test fail apparently. **This currently blocks the build of the repo**. Adapted Dockerfile now that go is not installed in `/go` anymore. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
4 changed files
with
15 additions
and
18 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,13 +1,15 @@ | ||
# The correct AWS SAM build image based on the runtime of the function will be | ||
# passed as build arg. The default allows to do `docker build .` when testing. | ||
ARG IMAGE=lambci/lambda:build-go1.x | ||
ARG IMAGE=public.ecr.aws/sam/build-go1.x | ||
FROM $IMAGE | ||
|
||
# set the GOCACHE | ||
ENV GOPATH=/go | ||
ENV GOCACHE=$GOPATH/.cache/go-build | ||
ENV GOPROXY=direct | ||
|
||
# Ensure all users can write to GOPATH | ||
RUN chmod -R 777 $GOPATH | ||
RUN mkdir $GOPATH && \ | ||
chmod -R 777 $GOPATH | ||
|
||
CMD [ "go" ] |
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
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
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