Skip to content
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

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

mythri-garaga
Copy link
Contributor

@mythri-garaga mythri-garaga commented Oct 22, 2020

Summary

Use different Golang version while building Agent for Windows

Implementation details

  • In Makefile, target docker-release is modified to use different dockerfiles based on OS

Testing

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.

@mythri-garaga mythri-garaga marked this pull request as ready for review October 22, 2020 22:37
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@mythri-garaga mythri-garaga force-pushed the dev branch 2 times, most recently from 38d94e1 to 7020708 Compare October 23, 2020 20:20
Makefile Outdated Show resolved Hide resolved
@@ -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
Copy link
Contributor

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}"
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@mythri-garaga mythri-garaga merged commit 7613055 into aws:dev Oct 27, 2020
@mythri-garaga mythri-garaga mentioned this pull request Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants