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

feat(connector-node): docker build connector node using local source code #8414

Merged
merged 2 commits into from
Mar 8, 2023

Conversation

wenym1
Copy link
Contributor

@wenym1 wenym1 commented Mar 8, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

As titled. Previously we build the docker image from the source clone from the original connector-node repo. In this PR, we change to build connector node from the local connector source code.

Checklist For Contributors

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • I have demonstrated that backward compatibility is not broken by breaking changes and created issues to track deprecated features to be removed in the future. (Please refer to the issue)
  • All checks passed in ./risedev check (or alias, ./risedev c)

Checklist For Reviewers

  • I have requested macro/micro-benchmarks as this PR can affect performance substantially, and the results are shown.

Documentation

  • My PR DOES NOT contain user-facing changes.
Click here for Documentation

Types of user-facing changes

Please keep the types that apply to your changes, and remove the others.

  • Installation and deployment
  • Connector (sources & sinks)
  • SQL commands, functions, and operators
  • RisingWave cluster configuration changes
  • Other (please specify in the release note below)

Release note

@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Merging #8414 (6afeaa3) into main (f482f1b) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #8414      +/-   ##
==========================================
- Coverage   71.58%   71.57%   -0.01%     
==========================================
  Files        1135     1135              
  Lines      185113   185113              
==========================================
- Hits       132515   132501      -14     
- Misses      52598    52612      +14     
Flag Coverage Δ
rust 71.57% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/batch/src/executor/group_top_n.rs 68.23% <0.00%> (-6.48%) ⬇️
src/object_store/src/object/mod.rs 47.87% <0.00%> (-0.21%) ⬇️
src/storage/src/hummock/sstable_store.rs 64.35% <0.00%> (-0.16%) ⬇️
src/stream/src/executor/aggregation/minput.rs 96.17% <0.00%> (-0.11%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -33,14 +33,14 @@ RUN rustup self update \
&& rustup component add rustfmt

RUN cargo fetch
RUN mkdir -p /risingwave/bin/connector-node
Copy link
Contributor

@huangjw806 huangjw806 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need keep here, because it will use in this command: mv /risingwave/target/release/risingwave /risingwave/bin/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

RUN cd risingwave-connector-node && mvn -B package -Dmaven.test.skip=true
RUN tar -zxvf /risingwave/risingwave-connector-node/assembly/target/risingwave-connector-1.0.0.tar.gz -C /risingwave/bin/connector-node
RUN cd /risingwave/java && mvn -B package -Dmaven.test.skip=true && \
mkdir -p /risingwave/bin/connector-node && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe should delete here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the builder, so I think the tar file will not be included in the final image

Copy link
Contributor

@tabVersion tabVersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

rest LGTM

@wenym1
Copy link
Contributor Author

wenym1 commented Mar 8, 2023

I have tried triggering a pipeline to build the docker image. I works fine.

https://buildkite.com/risingwavelabs/docker/builds/13440#0186c0f6-bbe5-446d-9092-310c439d1c91

@wenym1 wenym1 added this pull request to the merge queue Mar 8, 2023
Merged via the queue into main with commit e9e74ef Mar 8, 2023
@wenym1 wenym1 deleted the yiming/connector-node-docker branch March 8, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants