Skip to content

Commit

Permalink
fix: horust cache (#1151)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingy94@gmail.com>

Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Nov 3, 2022
1 parent 7efeff5 commit 46d24fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/lang/ir/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ working-directory = "${%[3]s}"
[environment]
keep-env = true
re-export = [ "PATH", "SHELL", "USER", "%[3]s", "ENVD_AUTHORIZED_KEYS_PATH", "ENVD_HOST_KEY" ]
[restart]
strategy = "on-failure"
Expand All @@ -54,10 +53,10 @@ wait = "5s"

func (g Graph) installHorust(root llb.State) llb.State {
horust := root.
File(llb.Copy(llb.Image(types.HorustImage), "/", "/usr/local/bin", llb.WithUIDGID(g.uid, g.gid)),
File(llb.Copy(llb.Image(types.HorustImage), "/", "/usr/local/bin"),
llb.WithCustomName("[internal] install horust")).
File(llb.Mkdir(types.HorustServiceDir, 0755, llb.WithParents(true), llb.WithUIDGID(g.uid, g.gid))).
File(llb.Mkdir(types.HorustLogDir, 0755, llb.WithParents(true), llb.WithUIDGID(g.uid, g.gid)))
File(llb.Mkdir(types.HorustServiceDir, 0755, llb.WithParents(true))).
File(llb.Mkdir(types.HorustLogDir, 0777, llb.WithParents(true)))
return horust
}

Expand Down

0 comments on commit 46d24fd

Please sign in to comment.