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: Initial support for R language #257

Merged
merged 2 commits into from
Jun 10, 2022
Merged

feat: Initial support for R language #257

merged 2 commits into from
Jun 10, 2022

Conversation

terrytangyuan
Copy link
Member

Signed-off-by: terrytangyuan terrytangyuan@gmail.com

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
@@ -60,6 +62,28 @@ func ruleFuncPyPIPackage(thread *starlark.Thread, _ *starlark.Builtin,
return starlark.None, nil
}

func ruleFuncRPackage(thread *starlark.Thread, _ *starlark.Builtin,
Copy link
Member Author

Choose a reason for hiding this comment

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

Created a separate function instead of reusing ruleFuncPyPIPackage since we will need to extend it in the future for R specific installation.

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

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

LGTM 👍
/lgtm

I love R and thanks for the awesome contribution 🎉

base = llb.Image("docker.io/gaocegege/python:3.8-ubuntu20.04")
if g.Language == "r" {
base = llb.Image("docker.io/r-base:4.2.0")
// r-base image already has GID 1000.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can always use 1001. But here LGTM

@gaocegege gaocegege merged commit 66d83d6 into main Jun 10, 2022
@gaocegege gaocegege deleted the r-support branch June 10, 2022 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants