Skip to content

Commit 0ac7699

Browse files
committed
updated container to use passed in values correctly so we don't need to push the changes through application.env anymore
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 3fedd77 commit 0ac7699

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/commands/node/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ export class NodeCommandTasks {
936936
const podName = ctx.config.podNames[nodeAlias];
937937
subTasks.push({
938938
title: `Node: ${chalk.yellow(nodeAlias)}`,
939-
task: () => this.platformInstaller.taskSetup(podName, nodeAlias, ctx.config.stagingDir, isGenesis),
939+
task: () => this.platformInstaller.taskSetup(podName, ctx.config.stagingDir, isGenesis),
940940
});
941941
}
942942

src/core/platform_installer.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -279,24 +279,14 @@ export class PlatformInstaller {
279279
}
280280

281281
/** Return a list of task to perform node directory setup */
282-
taskSetup(podName: PodName, nodeAlias: NodeAlias, stagingDir: string, isGenesis: boolean) {
282+
taskSetup(podName: PodName, stagingDir: string, isGenesis: boolean) {
283283
const self = this;
284284
return new Listr(
285285
[
286286
{
287287
title: 'Copy configuration files',
288288
task: async () => await self.copyConfigurationFiles(stagingDir, podName, isGenesis),
289289
},
290-
{
291-
title: 'Update with node specific values',
292-
task: async () =>
293-
await this.k8.execContainer(podName, constants.ROOT_CONTAINER, [
294-
'bash',
295-
'-c',
296-
`echo CONSENSUS_NODE_ID=${Templates.nodeIdFromNodeAlias(nodeAlias)} >> /etc/network-node/application.env;` +
297-
` echo CONSENSUS_NODE_ALIAS=${nodeAlias} >> /etc/network-node/application.env`,
298-
]),
299-
},
300290
{
301291
title: 'Set file permissions',
302292
task: async () => await self.setPlatformDirPermissions(podName),

0 commit comments

Comments
 (0)