Skip to content

Commit

Permalink
fix(dockerfiles/cd/pingcap/tiflow): fix dm building
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo committed Nov 10, 2023
1 parent 353fb21 commit 13bab9a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions dockerfiles/cd/pingcap/tiflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ LABEL go-version="${GOLANG_VERSION}"
FROM builder-cdc as builder-dm

# install nodejs toolchain
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash && \
source ~/.bashrc && \
nvm install 16 && \
npm install -g yarn
# renovate: datasource=docker depName=node
ARG NODE_VERSION=16.20.2
# renovate: datasource=github-releases depName=nvm-sh/nvm
ARG NVM_VERSION=v0.39.5
ARG NVM_DIR=/usr/local/nvm
RUN mkdir -p $NVM_DIR && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash && \
. $NVM_DIR/nvm.sh && \
nvm install ${NODE_VERSION} && \
nvm use v${NODE_VERSION} && \
nvm alias default v${NODE_VERSION}
ENV PATH="${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN node --version && npm --version && npm install -g yarn

########### stage: Builder - total
FROM builder-dm as builder
Expand All @@ -48,7 +57,7 @@ FROM builder-dm as building-dm

COPY . /tiflow
ARG GOPROXY
RUN GOPROXY=${GOPROXY} make dm-master-with-webui dm-worker dmctl dm-syncer -c /tiflow
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
Expand Down

0 comments on commit 13bab9a

Please sign in to comment.