Skip to content

Add devcontainer env #19

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Add devcontainer env #19

wants to merge 3 commits into from

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Jun 18, 2023

related issue: #18
add a dev container config for client-cpp

Closes #18

@Smityz Smityz marked this pull request as draft June 18, 2023 17:08
@Smityz Smityz marked this pull request as ready for review June 19, 2023 05:45
Signed-off-by: Smityz <smityz@qq.com>
Signed-off-by: Smityz <smityz@qq.com>
@Smityz
Copy link
Contributor Author

Smityz commented Jun 19, 2023

This dev container config can compile on MacOS, but can't compile on Windows 11. I think it's a platform problem, I will fix it later.
Screenshot 2023-06-19 at 13 05 26
And this PR is ready for review @tisonkun

Signed-off-by: Smityz <smityz@qq.com>
/bin/bash -c "make release"
```

**Way3: Use Image to Compile(Image is NOT Official)**
Copy link
Collaborator

Choose a reason for hiding this comment

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

@tisonkun Do we allow personal image?

Choose a reason for hiding this comment

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

No. It's better to start a proposal build an image with approval of TiKV committers or maintainers instead of recommend a personal docker image in README.

@Smityz you can still mention it in the PR description and spread among social media, but TiKV may not endorse it like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree with you, and I will convert this PR to draft until someone builds an official docker image.

@Smityz Smityz marked this pull request as draft June 30, 2023 11:20
@@ -0,0 +1,24 @@
FROM centos:7.9.2009
Copy link
Member

Choose a reason for hiding this comment

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

Based on my experience developing a dev container for OpenDAL, I recommend using mcr.microsoft.com/devcontainers/rust:bullseye and customizing it with post_create.sh. For more information, please visit https://github.com/apache/incubator-opendal/tree/main/.devcontainer.

  • All images are cached so users don't need to fetch them.
  • Those images are well-maintained and updated.
  • Those images handles many suck things related to users permission which is not easy (we tried and failed at OpenDAL).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, let me try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile by docker
4 participants