-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use different Golang version while building Agent for Windows #2688
Conversation
38d94e1
to
7020708
Compare
scripts/dockerfiles/Dockerfile.build
Outdated
@@ -11,7 +11,8 @@ | |||
# express or implied. See the License for the specific language governing | |||
# permissions and limitations under the License. | |||
|
|||
FROM golang:1.12 | |||
ARG GO_VERSION=1.15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to know what others think, but I'd rather not use a default value so that if our main makefile is wrong, the rest of the make files would fail, instead of silently using go 1.15.
@@ -71,11 +77,17 @@ docker: certs build-in-docker pause-container-release cni-plugins .out-stamp | |||
@docker build -f scripts/dockerfiles/Dockerfile.release -t "amazon/amazon-ecs-agent:make" . | |||
@echo "Built Docker image \"amazon/amazon-ecs-agent:make\"" | |||
|
|||
ifeq (${TARGET_OS},windows) | |||
BUILD="cleanbuild-${TARGET_OS}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this variable still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be useful when we are playing with the scripts locally.
Summary
Use different Golang version while building Agent for Windows
Implementation details
Makefile
, targetdocker-release
is modified to use different dockerfiles based on OSTesting
Tested the build produced by
make codebuild
on Windows2016. Agent joined the cluster successfully.New tests cover the changes:
Description for the changelog
Bug - Fixed Makefile to use Go1.12 for Agent windows build
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.