mirror of
https://github.com/fluencelabs/node-distro
synced 2025-06-27 05:31:37 +00:00
Add ceramic host to deployment_config (#39)
This commit is contained in:
@ -30,6 +30,7 @@ CONFIG = {
|
||||
'RUST_LOG': 'info,network=trace,execution=trace,tide=warn,aquamarine=info,aquamarine::actor=info,tokio_threadpool=info,tokio_reactor=info,mio=info,tokio_io=info,soketto=info,yamux=info,multistream_select=info,libp2p_secio=info,libp2p_websocket::framed=info,libp2p_ping=info,libp2p_core::upgrade::apply=info,libp2p_kad::kbucket=info,cranelift_codegen=info,wasmer_wasi=info,async_io=info,polling=info,wasmer_interface_types_fl=info ,cranelift_codegen=info,wasmer_wasi=info,async_io=info,polling=info,wasmer_interface_types_fl=info,particle_server::behaviour::identify=info,libp2p_mplex=info,libp2p_identify=info,walrus=info,particle_protocol::libp2p_protocol::upgrade=info',
|
||||
'FLUENCE_ENV_AQUA_IPFS_EXTERNAL_API_MULTIADDR': '/ip4/{host}/tcp/{ipfs_port}',
|
||||
'FLUENCE_ENV_AQUA_IPFS_EXTERNAL_SWARM_MULTIADDR': '/ip4/{host}/tcp/{ipfs_swarm_port}',
|
||||
'CERAMIC_HOST': '{ceramic_host}',
|
||||
},
|
||||
'command': '-c /Config.toml -f ed25519 -k {keypair} -x {host} -t {tcp_port} -w {ws_port} -m {management_key}',
|
||||
'volumes': [
|
||||
@ -56,7 +57,7 @@ CONFIG = {
|
||||
}
|
||||
}
|
||||
|
||||
def gen_compose_file(out, container_tag, scale, is_bootstrap, bootstraps, host, management_key, keypairs):
|
||||
def gen_compose_file(out, container_tag, scale, is_bootstrap, bootstraps, host, management_key, keypairs, ceramic_host):
|
||||
assert len(container_tag) > 0, "container tag must not be empty, was: '{}'".format(container_tag)
|
||||
|
||||
if is_bootstrap == True:
|
||||
@ -122,6 +123,7 @@ def gen_compose_file(out, container_tag, scale, is_bootstrap, bootstraps, host,
|
||||
ipfs_port=ipfs_port,
|
||||
ipfs_swarm_port=ipfs_swarm_port,
|
||||
ipfs_gateway_port=ipfs_gateway_port,
|
||||
ceramic_host=ceramic_host,
|
||||
)
|
||||
|
||||
for key in CONFIG['volumes']:
|
||||
|
@ -24,6 +24,7 @@
|
||||
"user": "root",
|
||||
"bootstrap": "164.90.171.139",
|
||||
"management_key": "12D3KooWFRgVmb1uWcmCbmJqLr8tBQghL6ysSpK2VyE2VZbaQ6wy",
|
||||
"ceramic_host": "http://stage.fluence.dev:7007",
|
||||
"caddy": [
|
||||
{ "host": "kras-00.fluence.dev", "ports": [9001, 9990, 5001, 5550, 8880, 8001], "addr": "164.90.171.139" },
|
||||
{ "host": "kras-01.fluence.dev", "ports": [9001, 5001, 8001], "addr": "178.128.194.190" },
|
||||
@ -87,6 +88,7 @@
|
||||
"user": "root",
|
||||
"bootstrap": "165.227.164.206",
|
||||
"management_key": "12D3KooWFRgVmb1uWcmCbmJqLr8tBQghL6ysSpK2VyE2VZbaQ6wy",
|
||||
"ceramic_host": "http://stage.fluence.dev:7007",
|
||||
"caddy": [
|
||||
{ "host": "net01.fluence.dev", "ports": [9001, 9990, 5550, 5001, 8880, 8001], "addr":"165.227.164.206" },
|
||||
{ "host": "net02.fluence.dev", "ports": [9001, 5001, 8001], "addr":"138.197.189.50" },
|
||||
@ -130,7 +132,7 @@
|
||||
},
|
||||
{
|
||||
"name": "stage",
|
||||
"container_tag": "v0.0.48_46",
|
||||
"container_tag": "v0.0.49_47",
|
||||
"containers_per_host": 5,
|
||||
"hosts": [
|
||||
"134.209.186.43"
|
||||
@ -141,6 +143,7 @@
|
||||
"/ip4/134.209.186.43/tcp/7770"
|
||||
],
|
||||
"management_key": "12D3KooWFRgVmb1uWcmCbmJqLr8tBQghL6ysSpK2VyE2VZbaQ6wy",
|
||||
"ceramic_host": "http://stage.fluence.dev:7007",
|
||||
"caddy": [
|
||||
{
|
||||
"host": "stage.fluence.dev",
|
||||
|
@ -59,6 +59,7 @@ def deploy_bootstrap():
|
||||
host=env.host_string,
|
||||
management_key=target['management_key'],
|
||||
keypairs=keypair,
|
||||
ceramic_host=target['ceramic_host'],
|
||||
)
|
||||
|
||||
return do_deploy_fluence(yml)
|
||||
@ -81,6 +82,7 @@ def deploy_nodes():
|
||||
host=env.host_string,
|
||||
management_key=target['management_key'],
|
||||
keypairs=keypairs,
|
||||
ceramic_host=target['ceramic_host'],
|
||||
)
|
||||
|
||||
return do_deploy_fluence(yml)
|
||||
|
Reference in New Issue
Block a user