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

fix: Set default value to GUID #260

Merged
merged 1 commit into from
Jun 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pkg/lang/ir/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,14 @@ func (g Graph) compileSystemPackages(root llb.State) llb.State {

func (g *Graph) compileBase() llb.State {
var base llb.State
var groupID string
var groupID string = "1000"
if g.CUDA == nil && g.CUDNN == nil {
if g.Language == "r" {
base = llb.Image("docker.io/r-base:4.2.0")
// r-base image already has GID 1000.
groupID = "1001"
} else {
base = llb.Image("docker.io/gaocegege/python:3.8-ubuntu20.04")
groupID = "1000"
}
} else {
base = g.compileCUDAPackages()
gaocegege marked this conversation as resolved.
Show resolved Hide resolved
Expand Down