Skip to content

Commit

Permalink
fixed jitsi and nostr
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledyoussef24 committed Dec 2, 2024
1 parent 0f4bdb4 commit 9e85413
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/grid_client/scripts/applications/nostor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function deploy(client, vms, subdomain, gatewayNode) {
log("================= Deploying VM =================");

const vmPlanetary = (await client.machines.getObj(vms.name))[0].planetary;
// Name Gateway Model

const gw: GatewayNameModel = {
name: subdomain,
node_id: gatewayNode.nodeId,
Expand Down Expand Up @@ -48,19 +48,19 @@ async function main() {
const subdomain = "nt" + grid3.twinId + name;
const instanceCapacity = { cru: 2, mru: 4, sru: 50 };

// VMNode Selection
const vmQueryOptions: FilterOptions = {
cru: instanceCapacity.cru,
mru: instanceCapacity.mru,
sru: instanceCapacity.sru,
availableFor: grid3.twinId,
farmId: 1,
};
// GatewayNode Selection

const gatewayQueryOptions: FilterOptions = {
gateway: true,
availableFor: grid3.twinId,
};

const gatewayNode = (await grid3.capacity.filterNodes(gatewayQueryOptions))[0];
const nodes = await grid3.capacity.filterNodes(vmQueryOptions);
const vmNode = await pingNodes(grid3, nodes);
Expand All @@ -69,7 +69,7 @@ async function main() {
const vms: MachinesModel = {
name,
network: {
name: "ntnet",
name: "nostrnet",
ip_range: "10.252.0.0/16",
},
machines: [
Expand All @@ -78,7 +78,7 @@ async function main() {
node_id: vmNode,
disks: [
{
name: "ntDisk",
name: "nsDisk",
size: instanceCapacity.sru,
mountpoint: "/mnt/data",
},
Expand All @@ -99,7 +99,7 @@ async function main() {
},
],
metadata: "",
description: "test deploying Nostr via ts grid3 client",
description: "Deploying Nostr instance via TS Grid3 client",
};

// Deploy VMs
Expand Down

0 comments on commit 9e85413

Please sign in to comment.