Skip to content

Commit

Permalink
proxy:latest uses setup-status branch for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
reliveyy committed Nov 10, 2020
1 parent a2aeffd commit e4b2239
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/proxy/src.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def __init__(self):
def get_ref(self, version):
if version == "latest":
# change "master" to a another xud branch for testing
return "master"
return "setup-status"
else:
return "v" + version
2 changes: 2 additions & 0 deletions images/utils/launcher/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,8 @@ def expand_vars(self, value):
if isinstance(value, str):
if "$home_dir" in value:
value = value.replace("$home_dir", self.home_dir)
if "$network_dir" in value:
value = value.replace("$network_dir", self.network_dir)
if f"${self.network}_dir" in value:
value = value.replace(f"${self.network}_dir", self.network_dir)
if "$data_dir" in value:
Expand Down
13 changes: 12 additions & 1 deletion images/utils/launcher/config/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def __str__(self):
"host": "$data_dir/lndltc",
"container": "/root/.lndltc",
},
{
"host": "$network_dir",
"container": "/root/network",
},
],
"ports": [PortPublish("127.0.0.1:28889:8080")],
"mode": "native",
Expand Down Expand Up @@ -392,7 +396,10 @@ def __str__(self):
"host": "$data_dir/lndltc",
"container": "/root/.lndltc",
},

{
"host": "$network_dir",
"container": "/root/network",
},
],
"ports": [PortPublish("127.0.0.1:18889:8080")],
"mode": "native",
Expand Down Expand Up @@ -610,6 +617,10 @@ def __str__(self):
"host": "$data_dir/lndltc",
"container": "/root/.lndltc",
},
{
"host": "$network_dir",
"container": "/root/network",
},
],
"ports": [PortPublish("127.0.0.1:8889:8080")],
"mode": "native",
Expand Down

0 comments on commit e4b2239

Please sign in to comment.