Skip to content

Commit

Permalink
fix: import ram failure
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Nov 19, 2024
1 parent 8f7d1f2 commit ed06249
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builder/exector/import_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ func (i *ImportApp) importApp() error {
go func(app string) {
defer wait.Done()
appFile := filepath.Join(oldSourceDir, app)
err := storage.Default().StorageCli.DownloadDirToDir(oldSourceDir, oldSourceDir)
if err != nil {
logrus.Errorf("s3 download dir to dir failure %s", err.Error())
return
}
tmpDir := path.Join(oldSourceDir, app+"-cache")
li, err := localimport.New(logrus.StandardLogger(), i.ImageClient.GetContainerdClient(), i.ImageClient.GetDockerClient(), tmpDir)
if err != nil {
Expand Down

0 comments on commit ed06249

Please sign in to comment.