Skip to content

Commit

Permalink
Update to go 1.14
Browse files Browse the repository at this point in the history
* use [distroless](https://github.com/GoogleContainerTools/distroless) docker image for final stage
* run `go mod vendor`
  • Loading branch information
jonnylangefeld committed Mar 11, 2020
1 parent 1def9a4 commit 95267fb
Show file tree
Hide file tree
Showing 24 changed files with 204 additions and 5,652 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

golang-docker-base-image: &golang-docker-base-image
docker:
- image: circleci/golang:1.12.7
- image: cimg/go:1.14
environment:
GO111MODULE: "on"
CGO_ENABLED: 0
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.11.4-alpine3.8 as builder
FROM golang:1.14.0-alpine3.11 as builder

WORKDIR /build
COPY . /build

RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -mod=vendor


FROM alpine:latest
FROM gcr.io/distroless/base

WORKDIR /cruise/paas/bin
COPY --from=builder /build/isopod .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ hermetic, and extensible solution to configuration management in Kubernetes.

```shell
$ go version
go version go1.11 darwin/amd64
go version go1.14 darwin/amd64
$ GO111MODULE=on go build
```

Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/cruise-automation/isopod

go 1.14

require (
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
github.com/DataDog/datadog-go v0.0.0-20180822151419-281ae9f2d895 // indirect
Expand Down
61 changes: 0 additions & 61 deletions vendor/golang.org/x/sys/unix/mkasm_darwin.go

This file was deleted.

106 changes: 0 additions & 106 deletions vendor/golang.org/x/sys/unix/mkpost.go

This file was deleted.

Loading

0 comments on commit 95267fb

Please sign in to comment.