Skip to content

Commit

Permalink
add --webui option
Browse files Browse the repository at this point in the history
  • Loading branch information
reliveyy committed Jul 6, 2020
1 parent a6e423d commit a06cf2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions images/utils/launcher/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def parse_command_line_arguments(self):

parser.add_argument("--use-local-images")
parser.add_argument("--dev", action="store_true")
parser.add_argument("--webui", action="store_true")

self.args = parser.parse_args()
self.logger.info("Parsed command-line arguments: %r", self.args)
Expand Down Expand Up @@ -404,6 +405,11 @@ def update_webui(self, parsed):
node = self.nodes.get("webui", None)
self.update_ports(node, parsed)

opt = "webui"
if hasattr(self.args, opt):
value = getattr(self.args, opt)
node["disabled"] = False

def update_raiden(self, parsed):
"""Update raiden related configurations from parsed TOML raiden section
:param parsed: Parsed raiden TOML section
Expand Down
3 changes: 3 additions & 0 deletions images/utils/launcher/config/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def __eq__(self, other):
"mode": "native",
"preserve_config": False,
"use_local_image": False,
"disabled": True,
},
},
"testnet": {
Expand Down Expand Up @@ -320,6 +321,7 @@ def __eq__(self, other):
"mode": "native",
"preserve_config": False,
"use_local_image": False,
"disabled": True,
}
},
"mainnet": {
Expand Down Expand Up @@ -482,6 +484,7 @@ def __eq__(self, other):
"mode": "native",
"preserve_config": False,
"use_local_image": False,
"disabled": True,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion images/webui/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN apk --no-cache add git

RUN git clone -b socketio https://github.com/ExchangeUnion/xud-webui-poc /src/frontend
WORKDIR /src/frontend
RUN git fetch && git checkout b1f1083d
RUN git fetch && git checkout f3d34f02
RUN yarn install
RUN yarn build

Expand Down

0 comments on commit a06cf2c

Please sign in to comment.