File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.13 -alpine3.11 AS builder
1
+ FROM golang:1.17 -alpine3.14 AS builder
2
2
3
- RUN mkdir -p /src/src
4
3
WORKDIR /usr/src
4
+ ARG GOOGLE_CLOUD_GO_VERSION
5
+ ENV GOOGLE_CLOUD_GO_VERSION $GOOGLE_CLOUD_GO_VERSION
5
6
6
- ENV GOOGLE_CLOUD_GO_VERSION v0.51.0
7
+ RUN busybox wget "https://github.com/googleapis/google-cloud-go/archive/${GOOGLE_CLOUD_GO_VERSION}.tar.gz" -O- | \
8
+ busybox tar x --strip-components 1 -zf - && \
9
+ cd bigtable && \
10
+ go install -v ./cmd/emulator
7
11
8
- RUN apk add --no-cache git
9
-
10
- RUN git clone --depth=1 --branch="$GOOGLE_CLOUD_GO_VERSION" https://github.com/googleapis/google-cloud-go.git . \
11
- && cd bigtable \
12
- && go install -v ./cmd/emulator
13
-
14
- FROM alpine:3.11
12
+ FROM alpine:3.14
15
13
16
14
COPY --from=builder /go/bin/emulator /bin/cbtemulator
17
15
Original file line number Diff line number Diff line change
1
+ VERSION := 23c02d92c7a1747068eb1fc57dddbad23907d614
2
+
3
+ build :
4
+ docker build -t us.gcr.io/sentryio/cbtemulator:$(VERSION ) --build-arg=GOOGLE_CLOUD_GO_VERSION=$(VERSION ) .
5
+
6
+ # Ideally craft's set up to release to here, but some ops people
7
+ # have permissions to push to the sentryio project, and
8
+ # cbtemulator doesn't really need updates often.
9
+ publish : build
10
+ docker push us.gcr.io/sentryio/cbtemulator:$(VERSION )
You can’t perform that action at this time.
0 commit comments