Skip to content

Commit

Permalink
deployments(ticdc): install wget and add cache (#8933)
Browse files Browse the repository at this point in the history
close #8758
  • Loading branch information
Rustin170506 authored May 12, 2023
1 parent 7f5309e commit 1335f98
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions deployments/ticdc/docker/integration-test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ FROM amd64/centos:centos7 as downloader
USER root
WORKDIR /root/download

# Installing dependencies.
RUN yum install -y \
wget
COPY ./scripts/download-integration-test-binaries.sh .
# Download all binaries into bin dir.
RUN ./download-integration-test-binaries.sh master
Expand Down Expand Up @@ -35,7 +38,8 @@ RUN yum install -y \
musl-dev \
sudo \
python3 \
psmisc
psmisc \
procps
RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum install -y epel-release-latest-7.noarch.rpm
RUN yum --enablerepo=epel install -y s3cmd
Expand All @@ -54,9 +58,6 @@ ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH
WORKDIR /go/src/github.com/pingcap/tiflow
COPY . .

# Clean bin dir and build TiCDC.
# We always need to clean before we build, please don't adjust its order.
RUN make clean
RUN make integration_test_build cdc
RUN --mount=type=cache,target=/root/.cache/go-build,target=/go/pkg/mod make integration_test_build cdc
COPY --from=downloader /root/download/bin/* ./bin/
RUN make check_third_party_binary
RUN --mount=type=cache,target=/root/.cache/go-build,target=/go/pkg/mod make check_third_party_binary

0 comments on commit 1335f98

Please sign in to comment.