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

Add TiDB module #5511

Merged
merged 30 commits into from Aug 15, 2022
Merged

Add TiDB module #5511

merged 30 commits into from Aug 15, 2022

Conversation

Icemap
Copy link
Contributor

@Icemap Icemap commented Jun 21, 2022

Add TiDB test container support.

@Icemap Icemap requested a review from a team as a code owner June 21, 2022 04:35
@Icemap
Copy link
Contributor Author

Icemap commented Jun 24, 2022

PTAL @eddumelendez @kiview

@Icemap
Copy link
Contributor Author

Icemap commented Jul 20, 2022

One month passed, PTAL.

@kiview
Copy link
Member

kiview commented Jul 20, 2022

Hey @Icemap, thank you for the contribution, we did not yet have time to review it, sorry.

@kiview
Copy link
Member

kiview commented Jul 20, 2022

Please run ./gradlew :tidb:spotlessApply to fix the spotless errors.

Copy link
Member

@eddumelendez eddumelendez left a comment

Choose a reason for hiding this comment

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

thanks for the pr @Icemap ! I've left some comments

super(dockerImageName);
dockerImageName.assertCompatibleWith(DEFAULT_IMAGE_NAME);

addExposedPorts(TIDB_PORT, REST_API_PORT);
Copy link
Member

Choose a reason for hiding this comment

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

both ports should be exposed? or only 4000?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both ports should be exposed. TIDB_PORT is 4000, and REST_API_PORT is 10080.

modules/tidb/build.gradle Outdated Show resolved Hide resolved
@Icemap
Copy link
Contributor Author

Icemap commented Jul 21, 2022

Please run ./gradlew :tidb:spotlessApply to fix the spotless errors.

@kiview Thanks for the review. And I got this error diffplug/spotless#834 at Java 17 when I run ./gradlew :tidb:spotlessApply. According to this issue. I added this line at gradle.properties:

org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
  --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

gradle.properties Outdated Show resolved Hide resolved
@bsideup
Copy link
Member

bsideup commented Aug 4, 2022

@eddumelendez does this PR need to change .github/labeler.yml / .github/ISSUE_TEMPLATE/enhancement.yaml / .github/ISSUE_TEMPLATE/feature.yaml / .github/ISSUE_TEMPLATE/bug_report.yaml / .github/dependabot.yml ?

[maintainers note] can we automate the check for new modules somehow?

kiview and others added 2 commits August 4, 2022 15:54
…ontainer.java

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
…ontainer.java

Co-authored-by: Sergei Egorov <bsideup@gmail.com>
@kiview
Copy link
Member

kiview commented Aug 4, 2022

@bsideup Yes, we need to touch those with new modules. We can take care of this for now.

@eddumelendez eddumelendez changed the title Support TiDB Add TiDB module Aug 6, 2022
@kiview
Copy link
Member

kiview commented Aug 12, 2022

Thanks a lot for all your work @Icemap. I saw you recently started to do some more commits. Are we good to go from your side or is there something you want to work on a bit more?

@kiview
Copy link
Member

kiview commented Aug 12, 2022

./gradlew :tidb:spotlessApply to fix Spotless, sorry.

@Icemap
Copy link
Contributor Author

Icemap commented Aug 15, 2022

Recently commits were to fix CI errors. @kiview

@kiview kiview merged commit 54d7f39 into testcontainers:master Aug 15, 2022
@kiview
Copy link
Member

kiview commented Aug 15, 2022

Merged, thanks for the great contribution and collaboration @Icemap 🙌

@kiview kiview removed the type/docs label Aug 19, 2022
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.

None yet

5 participants