Skip to content

Commit

Permalink
icm relayer (#2405)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturrez authored Dec 5, 2024
1 parent 91dec75 commit d09d0e3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/packer/aws-ubuntu-docker.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ build {
"docker pull prom/node-exporter:v1.7.0",
"docker pull grafana/grafana:10.4.1",
"docker pull prom/prometheus:v2.51.2",
"docker pull avaplatform/awm-relayer",
"docker pull golang:1.22.1-bullseye"
"docker pull avaplatform/icm-relayer:v2.0.0-fuji",
"docker pull golang:1.22.8-bullseye"
]
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/nodecmd/wiz.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func wiz(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
// get awm-relayer latest version
// get icm-relayer latest version
relayerVersion, err := teleporter.GetLatestRelayerReleaseVersion()
if err != nil {
return err
Expand Down
10 changes: 5 additions & 5 deletions pkg/docker/templates/awmrelayer.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: avalanche-cli
services:
awm-relayer:
image: avaplatform/awm-relayer:{{ .ICMRelayerVersion }}
container_name: awm-relayer
icm-relayer:
image: avaplatform/icm-relayer:{{ .ICMRelayerVersion }}
container_name: icm-relayer
restart: unless-stopped
user: "1000:1000" # ubuntu user
network_mode: "host"
volumes:
- /home/ubuntu/.avalanche-cli/services/awm-relayer:/.awm-relayer:rw
command: 'awm-relayer --config-file /.awm-relayer/awm-relayer-config.json'
- /home/ubuntu/.avalanche-cli/services/icm-relayer:/.icm-relayer:rw
command: 'icm-relayer --config-file /.icm-relayer/icm-relayer-config.json'
2 changes: 1 addition & 1 deletion pkg/remoteconfig/avalanche.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ func AvalancheFolderToCreate() []string {
"/home/ubuntu/.avalanchego/configs/chains/C",
"/home/ubuntu/.avalanchego/staking",
"/home/ubuntu/.avalanchego/plugins",
"/home/ubuntu/.avalanche-cli/services/awm-relayer",
"/home/ubuntu/.avalanche-cli/services/icm-relayer",
}
}
6 changes: 3 additions & 3 deletions pkg/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ func ComposeSSHSetupICMRelayer(host *models.Host, relayerVersion string) error {
if err := docker.ComposeSSHSetupICMRelayer(host, relayerVersion); err != nil {
return err
}
return docker.StartDockerComposeService(host, utils.GetRemoteComposeFile(), "awm-relayer", constants.SSHLongRunningScriptTimeout)
return docker.StartDockerComposeService(host, utils.GetRemoteComposeFile(), "icm-relayer", constants.SSHLongRunningScriptTimeout)
}

// RunSSHStartICMRelayerService runs script to start an AWM Relayer Service
func RunSSHStartICMRelayerService(host *models.Host) error {
return docker.StartDockerComposeService(host, utils.GetRemoteComposeFile(), "awm-relayer", constants.SSHLongRunningScriptTimeout)
return docker.StartDockerComposeService(host, utils.GetRemoteComposeFile(), "icm-relayer", constants.SSHLongRunningScriptTimeout)
}

// RunSSHStopICMRelayerService runs script to start an AWM Relayer Service
func RunSSHStopICMRelayerService(host *models.Host) error {
return docker.StopDockerComposeService(host, utils.GetRemoteComposeFile(), "awm-relayer", constants.SSHLongRunningScriptTimeout)
return docker.StopDockerComposeService(host, utils.GetRemoteComposeFile(), "icm-relayer", constants.SSHLongRunningScriptTimeout)
}

// RunSSHUpgradeAvalanchego runs script to upgrade avalanchego
Expand Down

0 comments on commit d09d0e3

Please sign in to comment.