-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[all] Upgrade Go runtime to 1.13, use go modules, remove glide and us…
…e MADVISE=dontneed for dbnode (#2221)
- Loading branch information
Showing
79 changed files
with
1,277 additions
and
1,138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
echo "--- :git: cleaning checkout" | ||
chmod -R +w ./_tools |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
set -eo pipefail | ||
|
||
echo "--- :git: cleaning checkout" | ||
chmod -R +w ./_tools || true | ||
git clean -dffx |
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
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
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,9 +1,9 @@ | ||
# stage 1: build | ||
FROM golang:1.12-alpine3.9 AS builder | ||
FROM golang:1.13-alpine3.11 AS builder | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
# Install Glide | ||
RUN apk add --update glide git make bash | ||
# Install deps | ||
RUN apk add --update git make bash | ||
|
||
# Add source code | ||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
|
@@ -15,7 +15,7 @@ RUN cd /go/src/github.com/m3db/m3/ && \ | |
make m3aggregator-linux-amd64 | ||
|
||
# stage 2: lightweight "release" | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 5000/tcp 6000/tcp 6001/tcp | ||
|
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,4 +1,4 @@ | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 5000/tcp 6000/tcp 6001/tcp | ||
|
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,9 +1,9 @@ | ||
# stage 1: build | ||
FROM golang:1.12-alpine3.9 AS builder | ||
FROM golang:1.13-alpine3.11 AS builder | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
# Install Glide | ||
RUN apk add --update glide git make bash | ||
# Install deps | ||
RUN apk add --update git make bash | ||
|
||
# Add source code | ||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
|
@@ -15,7 +15,7 @@ RUN cd /go/src/github.com/m3db/m3/ && \ | |
make m3collector-linux-amd64 | ||
|
||
# stage 2: lightweight "release" | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 7206-7207/tcp | ||
|
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,4 +1,4 @@ | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 7206/tcp 7207/tcp | ||
|
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,9 +1,9 @@ | ||
# stage 1: build | ||
FROM golang:1.12-alpine3.9 AS builder | ||
FROM golang:1.13-alpine3.11 AS builder | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
# Install Glide | ||
RUN apk add --update glide git make bash | ||
# Install deps | ||
RUN apk add --update git make bash | ||
|
||
# Add source code | ||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
|
@@ -15,7 +15,7 @@ RUN cd /go/src/github.com/m3db/m3/ && \ | |
make m3coordinator-linux-amd64 | ||
|
||
# stage 2: lightweight "release" | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 7201/tcp 7203/tcp | ||
|
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,4 +1,4 @@ | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
EXPOSE 7201/tcp 7203/tcp | ||
|
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,9 @@ | ||
# stage 1: build. We have to use an older version of alpine, as git 2.22 removes | ||
# the '-x' flag to a submodule command which in turn breaks glide, the old AF | ||
# dependency tool we have. Until we migrate to a new version of glide or go | ||
# modules, we need to use this older base image. | ||
# https://github.com/m3db/m3/issues/628 | ||
FROM golang:1.12-alpine3.9 AS builder | ||
# stage 1: build | ||
FROM golang:1.13-alpine3.11 AS builder | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
# Install Glide | ||
RUN apk add --update glide git make bash | ||
# Install deps | ||
RUN apk add --update git make bash | ||
|
||
# Add source code | ||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
|
@@ -19,9 +15,11 @@ RUN cd /go/src/github.com/m3db/m3/ && \ | |
make m3dbnode-linux-amd64 | ||
|
||
# Stage 2: lightweight "release" | ||
FROM alpine:latest | ||
FROM alpine:3.11 | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
ENV GODEBUG madvdontneed=1 | ||
|
||
EXPOSE 2379/tcp 2380/tcp 7201/tcp 7203/tcp 9000-9004/tcp | ||
|
||
RUN apk add --no-cache curl jq | ||
|
Oops, something went wrong.