Skip to content

Commit

Permalink
fix localbundles (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd authored Mar 5, 2024
1 parent c5de9db commit ca9c7ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ type CLI struct {
Save SaveCmd `cmd:"" help:"save manifest to file (DEPRECATED)" hidden:""`
Version VersionCmd `cmd:"" help:"version information"`
NoCheck bool `name:"no-check" short:"N" env:"TOPAZ_NO_CHECK" help:"disable local container status check"`
LogLevel int `name:"log" short:"l" type:"counter" default:"0" help:"log level"`
LogLevel int `name:"log" short:"L" type:"counter" default:"0" help:"log level"`
}
7 changes: 5 additions & 2 deletions pkg/cli/cmd/startrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ func getVolumes(cfg *config.Loader) ([]string, error) {
return dir, fmt.Sprintf("%s:%s", dir, fmt.Sprintf("/%s", filepath.Base(dir)))
})

// manually attach the configuration folder
volumes := []string{fmt.Sprintf("%s:/config:ro", cc.GetTopazCfgDir())}
volumes := []string{
fmt.Sprintf("%s:/config:ro", cc.GetTopazCfgDir()), // manually attach the configuration folder
fmt.Sprintf("%s:/root/.policy:ro", dockerx.PolicyRoot()), // manually attache policy store
}

for _, v := range volumeMap {
volumes = append(volumes, v)
}
Expand Down

0 comments on commit ca9c7ff

Please sign in to comment.