Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br: unified docker image align with tidb #36016

Merged
merged 9 commits into from
Jul 21, 2022
21 changes: 11 additions & 10 deletions br/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# For loading data to TiDB
FROM golang:1.18-buster as go-ycsb-builder
FROM golang:1.18.1-alpine as go-ycsb-builder
WORKDIR /go/src/github.com/pingcap/

RUN apk add --no-cache \
wget \
make \
git \
binutils-gold \
gcc \
musl-dev

RUN git clone https://github.com/pingcap/go-ycsb.git --depth=1 && \
cd go-ycsb && \
make

# For operating minio S3 compatible storage
FROM minio/mc as mc-builder

FROM golang:1.18-buster

RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
vim \
less \
default-mysql-client \
&& rm -rf /var/lib/apt/lists/*
FROM golang:1.18.1-alpine

WORKDIR /go/src/github.com/pingcap/br
COPY . .
Expand Down