Skip to content

Commit

Permalink
feat: make cardano-node socket available outside container (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Feb 29, 2024
1 parent 4e807b1 commit 9a5af5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 10 additions & 4 deletions pkgmgr/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pkgmgr/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9a5af5a

Please sign in to comment.