Skip to content

Commit

Permalink
add llb log
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Sep 26, 2022
1 parent 7327c13 commit 16ca22f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/lang/ir/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (g *Graph) preparePythonBase() llb.State {
// envd-sshd
sshd := base.File(llb.Copy(
llb.Image(types.EnvdSshdImage), "/usr/bin/envd-sshd", "/var/envd/bin/envd-sshd",
&llb.CopyInfo{CreateDestPath: true}))
&llb.CopyInfo{CreateDestPath: true}), llb.WithCustomName("[internal] add envd-sshd"))

// apt packages
var sb strings.Builder
Expand All @@ -169,7 +169,7 @@ func (g *Graph) preparePythonBase() llb.State {
cacheDir := "/var/cache/apt"
cacheLibDir := "/var/lib/apt"

run := sshd.Run(llb.Shlex(fmt.Sprintf("bash -c \"%s\"", sb.String())), llb.WithCustomNamef(sb.String()))
run := sshd.Run(llb.Shlex(fmt.Sprintf("bash -c \"%s\"", sb.String())), llb.WithCustomName("[internal] system packages"))
run.AddMount(cacheDir, llb.Scratch(),
llb.AsPersistentCacheDir(g.CacheID(cacheDir), llb.CacheMountShared))
run.AddMount(cacheLibDir, llb.Scratch(),
Expand Down
3 changes: 1 addition & 2 deletions pkg/types/envd.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ const DefaultPathEnvWindows = system.DefaultPathEnvWindows

const PythonBaseImage = "ubuntu:20.04"

var EnvdSshdImage = fmt.Sprintf(
"tensorchord/envd-sshd-from-scratch:%s", version.GetEnvdVersion())
var EnvdSshdImage = fmt.Sprintf("tensorchord/envd-sshd-from-scratch:%s", version.GetEnvdVersion())

var BaseEnvironment = []struct {
Name string
Expand Down

0 comments on commit 16ca22f

Please sign in to comment.