Skip to content

Commit

Permalink
BCDA-2775: Updating golang version in docker base images (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
orenfromberg authored Mar 29, 2020
1 parent 2614eac commit 100a0f1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ sudo: false

language: go

# Only the last two Go releases are supported by the Go team with security
# updates. Any older versions be considered deprecated. Don't bother testing
# with them.
# You don't need to test on very old versions of the Go compiler. It's the user's
# responsibility to keep their compiler up to date.
go:
- 1.11.5
- 1.14.1

# Only clone the most recent commit.
git:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/Dockerfile.documentation
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11.5-alpine
FROM golang:1.14.1-alpine3.11

RUN apk update upgrade
RUN apk add git build-base gcc
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/Dockerfile.package
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11.5
FROM golang:1.14.1

ARG GPG_PUB_KEY_FILE
ARG GPG_SEC_KEY_FILE
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/Dockerfile.ssas
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11.5-alpine
FROM golang:1.14.1-alpine3.11

RUN apk update upgrade
RUN apk add git openssl
Expand Down
6 changes: 3 additions & 3 deletions Dockerfiles/Dockerfile.tests
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11-stretch
FROM golang:1.14.1-buster

RUN go get -u github.com/golang/dep/cmd/dep
RUN go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
Expand All @@ -7,8 +7,8 @@ RUN go get -u github.com/securego/gosec/cmd/gosec
RUN go get -u gotest.tools/gotestsum
RUN go get -u -d github.com/golang-migrate/migrate/cmd/migrate; \
cd $GOPATH/src/github.com/golang-migrate/migrate/cmd/migrate; \
git checkout v4.6.2; \
go build -tags 'postgres' -ldflags="-X main.Version=$(git describe --tags)" -o $GOPATH/bin/migrate github.com/golang-migrate/migrate/cmd/migrate
git checkout v4.10.0; \
go build -tags 'postgres' -ldflags="-X main.Version=$(git describe --tags)" -o $GOPATH/bin/migrate github.com/golang-migrate/migrate/v4/cmd/migrate

WORKDIR /go/src/github.com/CMSgov/bcda-ssas-app
COPY . .
Expand Down

0 comments on commit 100a0f1

Please sign in to comment.