Skip to content

Commit

Permalink
fix: Set default value to GUID (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaocegege committed Jun 10, 2022
1 parent c4f525a commit 723b32f
Showing 1 changed file with 1 addition and 2 deletions.
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()
Expand Down

0 comments on commit 723b32f

Please sign in to comment.