-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for integration test for ECS Exec on Windows
This change fixes the following issues- - Golang base image is Windows release specific and is not scalable. The change introduced here ensures that the correct base image is being used instead of the generic golang image. Also, we will build the binary and then copy it to the container image. - We need to disable Go Module in order to build the binary. We enable it at the end of the script.
- Loading branch information
Showing
2 changed files
with
23 additions
and
12 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
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,18 @@ | ||
# escape=` | ||
|
||
FROM golang:1.12 as build-env | ||
MAINTAINER Amazon Web Services, Inc. | ||
|
||
# There is dockerfile documentation on how to treat windows paths | ||
WORKDIR C:\Users\Administrator\go\src\sleep | ||
COPY ./sleep C:/Users/Administrator/go/src/sleep | ||
RUN go build -tags integration -installsuffix cgo -a -o C:/Users/Administrator/go/src/sleep/sleep.exe . | ||
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"). You may | ||
# not use this file except in compliance with the License. A copy of the | ||
# License is located at | ||
# | ||
# http://aws.amazon.com/apache2.0/ | ||
# | ||
# or in the "license" file accompanying this file. This file is distributed | ||
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
# express or implied. See the License for the specific language governing | ||
# permissions and limitations under the License | ||
|
||
FROM amazon-ecs-ftest-windows-base:make | ||
|
||
MAINTAINER Amazon Web Services, Inc. | ||
COPY --from=build-env C:/Users/Administrator/go/src/sleep/sleep.exe C:/ | ||
|
||
ADD sleep.exe C:/sleep.exe |