Skip to content

Commit

Permalink
fix(dockerfiles/cd/pingcap/tiflow): fix cdc building
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo committed Nov 10, 2023
1 parent a5d02d7 commit 353fb21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ msb-tiflash: (_msb "tiflash" "https://github.com/pingcap/tiflash" "master")
docker run --rm --entrypoint=/tiflash/tiflash tiflash:latest version

msb-dm: (_clone "tiflow" "https://github.com/pingcap/tiflow.git" "master")
docker build -t localhost/dm:local-build -f dockerfiles/cd/pingcap/tiflow/Dockerfile --target final-dm ../tiflow
docker build --load -t localhost/dm:local-build -f dockerfiles/cd/pingcap/tiflow/Dockerfile --target final-dm ../tiflow
docker run --rm localhost/dm:local-build /dm-master -V
docker run --rm localhost/dm:local-build /dm-worker -V
docker run --rm localhost/dm:local-build /dm-syncer -V
docker run --rm localhost/dm:local-build /dmctl -V

msb-ticdc: (_clone "tiflow" "https://github.com/pingcap/tiflow.git" "master")
docker build -t localhost/ticdc:local-build -f dockerfiles/cd/pingcap/tiflow/Dockerfile --target final-cdc ../tiflow
docker build --load -t localhost/ticdc:local-build -f dockerfiles/cd/pingcap/tiflow/Dockerfile --target final-cdc ../tiflow
docker run --rm localhost/ticdc:local-build /cdc version

msb-tidb: (_msb "tidb" "https://github.com/pingcap/tidb.git" "master")
docker run --rm tidb -V

msb-pd: (_clone "pd" "https://github.com/tikv/pd.git" "master")
docker build -t localhost/pd:local-build -f dockerfiles/cd/tikv/pd/Dockerfile ../pd
docker build --load -t localhost/pd:local-build -f dockerfiles/cd/tikv/pd/Dockerfile ../pd
docker run --rm localhost/pd:local-build -V

build_product_base_images: (_docker_build_prod_base_images "hub.pingcap.net/bases")
Expand Down
8 changes: 0 additions & 8 deletions dockerfiles/cd/pingcap/tiflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ COPY --from=building-cdc /tiflow/bin/cdc /cdc
EXPOSE 8300
CMD ["/cdc"]

COPY . /tiflow
ARG GOPROXY
RUN GOPROXY=${GOPROXY} make dm-master-with-webui dm-worker dmctl dm-syncer -c /tiflow
RUN /tiflow/bin/dm-master -V
RUN /tiflow/bin/dm-worker -V
RUN /tiflow/bin/dm-syncer -V
RUN /tiflow/bin/dmctl -V

########### stage: Final image - dm
FROM ghcr.io/pingcap-qe/bases/tools-base:v1.7.1 as final-dm

Expand Down

0 comments on commit 353fb21

Please sign in to comment.