Skip to content

Commit d082515

Browse files
committed
updates
1 parent 640036d commit d082515

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
FROM golang:1.13-alpine3.11 AS builder
1+
FROM golang:1.17-alpine3.14 AS builder
22

3-
RUN mkdir -p /src/src
43
WORKDIR /usr/src
4+
ARG GOOGLE_CLOUD_GO_VERSION
5+
ENV GOOGLE_CLOUD_GO_VERSION $GOOGLE_CLOUD_GO_VERSION
56

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
711

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
1513

1614
COPY --from=builder /go/bin/emulator /bin/cbtemulator
1715

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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)

0 commit comments

Comments
 (0)