Skip to content

Commit

Permalink
Remove redundant Host Volume code (#1887)
Browse files Browse the repository at this point in the history
* remove host volumes from host docker containers as we're using Postgres now
  • Loading branch information
badgersrus authored Apr 30, 2024
1 parent ce8d274 commit c2a7b13
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions go/node/docker_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
)

var (
_hostDataDir = "/data" // this is how the directory is referenced within the host container
_enclaveDataDir = "/enclavedata" // this is how the directory is references within the enclave container
)

Expand Down Expand Up @@ -133,9 +132,7 @@ func (d *DockerNode) startHost() error {
d.cfg.hostP2PPort,
}

hostVolume := map[string]string{d.cfg.nodeName + "-host-volume": _hostDataDir}

_, err := docker.StartNewContainer(d.cfg.nodeName+"-host", d.cfg.hostImage, cmd, exposedPorts, nil, nil, hostVolume)
_, err := docker.StartNewContainer(d.cfg.nodeName+"-host", d.cfg.hostImage, cmd, exposedPorts, nil, nil, nil)

return err
}
Expand Down

0 comments on commit c2a7b13

Please sign in to comment.