diff --git a/pkgmgr/package.go b/pkgmgr/package.go index 1362080..a36973a 100644 --- a/pkgmgr/package.go +++ b/pkgmgr/package.go @@ -39,10 +39,16 @@ func (p Package) install(cfg Config, context string) error { "ShortName": p.Name, "Version": p.Version, }, - "DataDir": filepath.Join( - cfg.DataDir, - pkgName, - ), + "Paths": map[string]string{ + "CacheDir": filepath.Join( + cfg.CacheDir, + pkgName, + ), + "DataDir": filepath.Join( + cfg.DataDir, + pkgName, + ), + }, }, ) // Run pre-flight checks diff --git a/pkgmgr/registry.go b/pkgmgr/registry.go index 5b4f534..0d5bcb0 100644 --- a/pkgmgr/registry.go +++ b/pkgmgr/registry.go @@ -29,7 +29,8 @@ var RegistryPackages = []Package{ "CARDANO_NODE_SOCKET_PATH": "/ipc/node.socket", }, Binds: []string{ - "{{ .DataDir }}/data:/data", + "{{ .Paths.CacheDir }}/ipc:/ipc", + "{{ .Paths.DataDir }}/data:/data", }, Ports: []string{ "3001",