Skip to content

Commit

Permalink
orderer/peer up & down need hostname.toLowerCase() #25
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondDim committed Dec 13, 2021
1 parent 5d29707 commit 66d53a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/service/orderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class Orderer extends AbstractService {
ordererDockerComposeYaml.addNetwork(this.config.networkName, { name: this.config.networkName, external: true })
ordererDockerComposeYaml.addOrderer(this.config, ordererName, ordererDomain, hostname, genesisFileName, ports?.[i].port, ports?.[i].operationPort, ports?.[i].isPublishPort, ports?.[i].isPublishOperationPort)

this.bdkFile.createDockerComposeYaml(`${hostname}.${ordererDomain}`.toLowerCase(), ordererDockerComposeYaml)
this.bdkFile.createDockerComposeYaml(`${hostname}.${ordererDomain}`, ordererDockerComposeYaml)

ordererHostnames.forEach(hostname => {
this.bdkFile.createOrgConfigEnv(`orderer-${hostname}.${ordererDomain}`, ordererDockerComposeYaml.getOrdererOrgEnv(this.config, ordererName, hostname, ordererDomain, ports?.[0]?.port))
Expand Down
4 changes: 2 additions & 2 deletions src/service/peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class Peer extends AbstractService {
peerDockerComposeYaml.addNetwork(this.config.networkName, { name: this.config.networkName, external: true })
peerDockerComposeYaml.addPeer(this.config, peerName, peerDomain, i, bootstrapPeerNumber, ports?.[bootstrapPeerNumber]?.port, ports?.[i]?.port, ports?.[i]?.operationPort, ports?.[i]?.isPublishPort, ports?.[i]?.isPublishOperationPort)

this.bdkFile.createDockerComposeYaml(`peer${i}.${peerDomain}`.toLowerCase(), peerDockerComposeYaml)
this.bdkFile.createDockerComposeYaml(`peer${i}.${peerDomain}`, peerDockerComposeYaml)

this.bdkFile.createOrgConfigEnv(`peer-peer${i}.${peerDomain}`, peerDockerComposeYaml.getPeerOrgEnv(this.config, peerName, i, peerDomain, ports?.[i]?.port))
}
Expand Down Expand Up @@ -189,7 +189,7 @@ export default class Peer extends AbstractService {
}

/**
* @description 在 channel 中加入 peer org
* @description 在 channel 中加入 peer org(第一步)
*/
public async addOrgToChannel (dto: PeerAddOrgToChannelType): Promise<void> {
await this.addOrgToChannelSteps().fetchChannelConfig(dto)
Expand Down

0 comments on commit 66d53a8

Please sign in to comment.