Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Add cakeshop initial nodes file #89

Merged
merged 6 commits into from
Oct 14, 2020
Merged

Conversation

apratt3377
Copy link
Contributor

-create cakeshop initial nodes file so running nodes are already added to cakeshop

Copy link
Contributor

@libby libby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor tweak suggestions

cp /etc/cakeshop/cakeshop-nodes.json /cakeshop/cakeshop-nodes.json;
<%- @nodes.each do |node| -%>
<%= set_node_template_vars(node) -%>
sed -i \"s/<%= @Service_Prefix %>_SERVICE_HOST/$<%= @Service_Prefix %>_SERVICE_HOST/g\" /cakeshop/cakeshop-nodes.json;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor tweak:
Moving <%= set_node_template_vars(node) -%> next to <%- @nodes.each do |node| -%> will make the output in out/07-cakeshop.yaml line up.

              <%- @nodes.each do |node| -%><%= set_node_template_vars(node) -%>
               sed -i \"s/<%= @Service_Prefix -%>_SERVICE_HOST/$<%= @Service_Prefix -%>_SERVICE_HOST/g\" /cakeshop/cakeshop-nodes.json;
              <%- end -%>

@@ -0,0 +1,20 @@
<%-
def set_node_template_vars(values)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can delete the function definition set_node_template_vars(values) here and add @Service_Prefix to qubernetes https://github.com/ConsenSys/qubernetes/blob/master/qubernetes#L22

@@ -1,3 +1,11 @@
<%-
def set_node_template_vars(values)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can delete the function definition set_node_template_vars(values) here and add @Service_Prefix to qubernetes https://github.com/ConsenSys/qubernetes/blob/master/qubernetes#L22

Copy link
Contributor

@libby libby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@libby libby merged commit c7c5bfb into Consensys:master Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants