Skip to content

Commit

Permalink
Merge pull request #1970 from petderek/upgrade-golang
Browse files Browse the repository at this point in the history
Use Golang 1.12
  • Loading branch information
petderek authored Apr 1, 2019
2 parents e8c3c8b + 46a36cd commit cc2dcc6
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: go
go_import_path: github.com/aws/amazon-ecs-agent
sudo: false
go:
- 1.11
- 1.12

matrix:
include:
Expand Down
2 changes: 1 addition & 1 deletion misc/agent-introspection-validator/build-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ docker run \
-v ${AGENT_VENDOR_DIR}:/gopath/src \
-e CGO_ENABLED=0 \
-e GOPATH=/go:/gopath \
golang:1.9 go build -a -x -ldflags '-s' -o /out/agent-introspection-validator /in/agent-introspection-validator.go
golang:1.12 go build -a -x -ldflags '-s' -o /out/agent-introspection-validator /in/agent-introspection-validator.go
2 changes: 1 addition & 1 deletion misc/appmesh-plugin-validator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 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 golang:1.9
FROM golang:1.12

MAINTAINER Amazon Web Services, Inc.
COPY appmesh-plugin-validator /
Expand Down
2 changes: 1 addition & 1 deletion misc/appmesh-plugin-validator/build-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ docker run \
-e CGO_ENABLED=0 \
-e GO111MODULE=on \
-w /in \
golang:1.11.5 go build -a -x -ldflags '-s' -o /out/appmesh-plugin-validator /in/appmesh-plugin-validator.go
golang:1.12 go build -a -x -ldflags '-s' -o /out/appmesh-plugin-validator /in/appmesh-plugin-validator.go
2 changes: 1 addition & 1 deletion misc/container-metadata-file-validator/build-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ docker run \
-v ${AGENT_VENDOR_DIR}:/gopath/src \
-e CGO_ENABLED=0 \
-e GOPATH=/go:/gopath \
golang:1.9 go build -a -x -ldflags '-s' -o /out/container-metadata-file-validator /in/container-metadata-file-validator.go
golang:1.12 go build -a -x -ldflags '-s' -o /out/container-metadata-file-validator /in/container-metadata-file-validator.go
2 changes: 1 addition & 1 deletion misc/elastic-inference-validator/build-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ docker run \
-v ${AGENT_VENDOR_DIR}:/gopath/src \
-e CGO_ENABLED=0 \
-e GOPATH=/go:/gopath \
golang:1.9 go build -a -x -ldflags '-s' -o /out/elastic-inference-validator /in/elastic-inference-validator.go
golang:1.12 go build -a -x -ldflags '-s' -o /out/elastic-inference-validator /in/elastic-inference-validator.go
2 changes: 1 addition & 1 deletion misc/gremlin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
all: gremlin image

gremlin: gremlin.go
docker run -v $(shell pwd):/out -v $(shell pwd)/gremlin.go:/in/gremlin.go -e CGO_ENABLED=0 golang:1.9 go build -a -x -ldflags '-s' -o /out/gremlin /in/gremlin.go
docker run -v $(shell pwd):/out -v $(shell pwd)/gremlin.go:/in/gremlin.go -e CGO_ENABLED=0 golang:1.12 go build -a -x -ldflags '-s' -o /out/gremlin /in/gremlin.go

image: gremlin
@./docker-image
Expand Down
2 changes: 1 addition & 1 deletion misc/netkitten/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
all: netkitten image

netkitten:
docker run -v $(shell pwd):/out -v $(shell pwd)/netkitten.go:/in/netkitten.go -e CGO_ENABLED=0 golang:1.9 go build -a -installsuffix cgo -ldflags '-s' -o /out/netkitten /in/netkitten.go
docker run -v $(shell pwd):/out -v $(shell pwd)/netkitten.go:/in/netkitten.go -e CGO_ENABLED=0 golang:1.12 go build -a -installsuffix cgo -ldflags '-s' -o /out/netkitten /in/netkitten.go

image: netkitten
@./docker-image
Expand Down
2 changes: 1 addition & 1 deletion misc/taskmetadata-validator/build-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ docker run \
-v ${AGENT_VENDOR_DIR}:/gopath/src \
-e CGO_ENABLED=0 \
-e GOPATH=/go:/gopath \
golang:1.9 go build -a -x -ldflags '-s' -o /out/taskmetadata-validator /in/taskmetadata-validator.go
golang:1.12 go build -a -x -ldflags '-s' -o /out/taskmetadata-validator /in/taskmetadata-validator.go
2 changes: 1 addition & 1 deletion misc/telemetry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# 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 golang:1.9
FROM golang:1.12

WORKDIR /gopath

Expand Down
2 changes: 1 addition & 1 deletion misc/v3-task-endpoint-validator/build-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ docker run \
-v ${AGENT_VENDOR_DIR}:/gopath/src \
-e CGO_ENABLED=0 \
-e GOPATH=/go:/gopath \
golang:1.9 go build -a -x -ldflags '-s' -o /out/v3-task-endpoint-validator /in/v3-task-endpoint-validator.go
golang:1.12 go build -a -x -ldflags '-s' -o /out/v3-task-endpoint-validator /in/v3-task-endpoint-validator.go
2 changes: 1 addition & 1 deletion scripts/dockerfiles/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

FROM golang:1.9
FROM golang:1.12
MAINTAINER Amazon Web Services, Inc.

RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/dockerfiles/Dockerfile.buildECSCNIPlugins
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

FROM golang:1.9
FROM golang:1.12
MAINTAINER Amazon Web Services, Inc.

RUN mkdir -p /go/src/github.com/aws/
Expand Down
2 changes: 1 addition & 1 deletion scripts/dockerfiles/Dockerfile.cleanbuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

FROM golang:1.9
FROM golang:1.12
MAINTAINER Amazon Web Services, Inc.

COPY ./scripts/cleanbuild /scripts/cleanbuild
Expand Down

0 comments on commit cc2dcc6

Please sign in to comment.