Documentation
¶
Index ¶
- Constants
- func CleanCmds(sudo bool, isLinux bool) []string
- func Exec(ctx context.Context, args ...string) error
- func ExecCompose(ctx context.Context, dir string, args ...string) error
- func ExecComposeVerbose(ctx context.Context, dir string, args ...string) error
- func ExecEVMInit(ctx context.Context, dir string, evmInitFilename string) error
- func GenerateComposeFile(def ComposeDef) ([]byte, error)
- func GenerateOmniEVMInitFile(def ComposeDef) ([]byte, error)
- func NewInfraData(manifest types.Manifest) (types.InfrastructureData, error)
- type ComposeDef
- type Provider
Constants ¶
const ProviderName = "docker"
Variables ¶
This section is empty.
Functions ¶
func CleanCmds ¶
CleanCmds returns generic docker commands to clean up docker containers and networks. This bypasses the need to a specific docker-compose context.
func ExecCompose ¶
ExecCompose runs a Docker Compose command for a testnet.
func ExecComposeVerbose ¶
ExecComposeVerbose runs a Docker Compose command for a testnet and displays its output.
func GenerateComposeFile ¶
func GenerateComposeFile(def ComposeDef) ([]byte, error)
func GenerateOmniEVMInitFile ¶
func GenerateOmniEVMInitFile(def ComposeDef) ([]byte, error)
func NewInfraData ¶
func NewInfraData(manifest types.Manifest) (types.InfrastructureData, error)
NewInfraData returns a new InfrastructureData for the given manifest. In addition to normal.
Types ¶
type ComposeDef ¶
type ComposeDef struct {
Network bool
NetworkName string
NetworkCIDR string
BindAll bool
Nodes []*e2e.Node
OmniEVMs []types.OmniEVM
Anvils []types.AnvilChain
Monitor bool
AnvilProxyTag string
RelayerTag string
MonitorTag string
Relayer bool
Prometheus bool
}
func SetImageTags ¶
func SetImageTags(def ComposeDef, manifest types.Manifest, omniImgTag string) ComposeDef
SetImageTags returns a new ComposeDef with the image tags set. This is a convenience function to avoid setting the tags manually.
func (ComposeDef) GethTag ¶
func (ComposeDef) GethTag() string
func (ComposeDef) NodeOmniEVMs ¶
func (c ComposeDef) NodeOmniEVMs() map[string]string
NodeOmniEVMs returns a map of node name to OmniEVM instance name; map[node_name]omni_evm.
type Provider ¶
Provider wraps the cometBFT docker provider, writing a different compose file.
func NewProvider ¶
NewProvider returns a new Provider.
func (*Provider) Setup ¶
Setup generates the docker-compose file and write it to disk, erroring if any of these operations fail.