8000 feat: bring apt-source compilation earlier by n063h · Pull Request #1554 · tensorchord/envd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: bring apt-source compilation earlier #1554

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

Merged
merged 1 commit into from
Apr 10, 2023
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
8 changes: 4 additions & 4 deletions pkg/lang/ir/v1/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,22 +286,22 @@ func (g *generalGraph) CompileLLB(uid, gid int) (llb.State, error) {
if err != nil {
return llb.State{}, errors.Wrap(err, "failed to get the base image")
}
aptMirror := g.compileUbuntuAPT(base)

// prepare dev env: stable operations should be done here to make it cache friendly
if g.Dev {
dev := g.compileDevPackages(base)
dev := g.compileDevPackages(aptMirror)
sshd := g.compileSSHD(dev)
horust := g.installHorust(sshd)
starship := g.compileStarship(horust)
userGroup := g.compileUserGroup(starship)
base = userGroup
aptMirror = userGroup
}

lang, err := g.compileLanguage(base)
lang, err := g.compileLanguage(aptMirror)
if err != nil {
return llb.State{}, errors.Wrap(err, "failed to compile language")
}
aptMirror := g.compileUbuntuAPT(base)
systemPackages := g.compileSystemPackages(aptMirror)
merge := llb.Merge([]llb.State{
base,
Expand Down
0