Skip to content

platform trial nexus#6

Draft
jordan-rash wants to merge 3 commits into
mainfrom
jordan/tpc-88-add-nexus-creation-to-script
Draft

platform trial nexus#6
jordan-rash wants to merge 3 commits into
mainfrom
jordan/tpc-88-add-nexus-creation-to-script

Conversation

@jordan-rash

@jordan-rash jordan-rash commented Aug 5, 2025

Copy link
Copy Markdown

this will start a 3 node nexus and register it with control plane.

  • starts native nexlet
  • starts deno nexlet

also updates http_gateway registration to new API

Two things to take this out of draft

  • Unhide workloads in UI
  • Change nex tag to latest (needs a release)

Signed-off-by: Jordan Rash <jordan@synadia.com>
Signed-off-by: Jordan Rash <jordan@synadia.com>
Signed-off-by: Jordan Rash <jordan@synadia.com>
@jordan-rash

Copy link
Copy Markdown
Author

CI isnt going to pass as its pulling from main and using control-plane latest which are not in sync

Comment thread docker-compose.yaml
- nats3-data:/data

nex1:
image: registry.synadia.io/nexce:main

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

using main tag temporarily until I can cut a new release, which should be this week. After that, latest will always be good enough

@jordan-rash jordan-rash requested review from bruth and sethjback August 5, 2025 22:48

@joeriddles joeriddles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love it. Will test again when CP is updated to show the workload in the UI

Tested locally, worked great it.
❯ ./scripts/start.sh
latest: Pulling from control-plane
Digest: sha256:cef1b3af738a02e41a51dbd514af99d8311b1b6433e731e046a4a7e4843baf3d
Status: Image is up to date for registry.synadia.io/control-plane:latest
registry.synadia.io/control-plane:latest
[+] Running 3/3
 ✔ Network platform-trial_default            Created                                                                                                                                                                               0.0s
 ✔ Volume "platform-trial_cp-data"           Created                                                                                                                                                                               0.0s
 ✔ Container platform-trial-control-plane-1  Started                                                                                                                                                                               0.1s
Waiting for control-plane to be ready...
control-plane is ready.

Saved ADMIN_USERNAME and ADMIN_PASSWORD to .env

POST localhost:8080/api/core/beta/admin/app-user/

Saved ADMIN_TOKEN to .env

GET localhost:8080/api/core/beta/teams/
POST localhost:8080/api/core/beta/teams/30t5gVAm4F26F2atbK1uh8ZPxq3/systems
PATCH localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/?test_connection=false
[+] Running 6/6
 ✔ Volume "platform-trial_nats1-data"  Created                                                                0.0s
 ✔ Volume "platform-trial_nats2-data"  Created                                                                0.0s
 ✔ Volume "platform-trial_nats3-data"  Created                                                                0.0s
 ✔ Container platform-trial-nats2-1    Healthy                                                                0.8s
 ✔ Container platform-trial-nats1-1    Healthy                                                                0.8s
 ✔ Container platform-trial-nats3-1    Healthy                                                                0.8s
PATCH localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/?test_connection=true
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
Retrying... (1/10)
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
Retrying... (2/10)
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
Retrying... (3/10)
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
Retrying... (4/10)
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
Retrying... (5/10)
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
Retrying... (6/10)
GET localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP
POST localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/accounts
GET localhost:8080/api/core/beta/accounts/30t5i2ogDeOCOdjbLkW8LaIaPH6/account-sk-groups/
POST localhost:8080/api/core/beta/accounts/30t5i2ogDeOCOdjbLkW8LaIaPH6/nats-users/
POST localhost:8080/api/core/beta/nats-users/30t5hwRJN7qZLqHspysd0HkY3Ka/creds
POST localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/accounts
GET localhost:8080/api/core/beta/accounts/30t5i3854QJQsTWfL7W8P6ZXO9l/account-sk-groups/
POST localhost:8080/api/core/beta/accounts/30t5i3854QJQsTWfL7W8P6ZXO9l/nats-users/
POST localhost:8080/api/core/beta/nats-users/30t5hxA9hZdhJkzBIkp8qteYwMe/creds
POST localhost:8080/api/core/beta/accounts/30t5i3854QJQsTWfL7W8P6ZXO9l/account-sk-groups/
GET localhost:8080/api/core/beta/accounts/30t5i3854QJQsTWfL7W8P6ZXO9l
PATCH localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/platform-components/
POST localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/accounts
GET localhost:8080/api/core/beta/accounts/30t5i1a8BA58FAhGsYDi2kwvV7D/account-sk-groups/
POST localhost:8080/api/core/beta/accounts/30t5i1a8BA58FAhGsYDi2kwvV7D/nats-users/
POST localhost:8080/api/core/beta/nats-users/30t5i02Zjov37OkddrseasT3h6I/creds
POST localhost:8080/api/core/beta/accounts/30t5i1a8BA58FAhGsYDi2kwvV7D/jetstream/kv-buckets/
PATCH localhost:8080/api/core/beta/systems/30t5gyPjMd2HGOrJ8X1NRgN3VlP/platform-components/
[+] Running 2/2
 ✔ nex1 Pulled                                                                                                                                                                                                                     4.4s
   ✔ 08bd8d8ac67d Pull complete                                                                                                                                                                                                    2.4s
[+] Running 5/5
 ✔ Container platform-trial-control-plane-1  Healthy                                                                                                                                                                               0.7s
 ✔ Container platform-trial-nats3-1          Healthy                                                                                                                                                                               0.7s
 ✔ Container platform-trial-nats1-1          Healthy                                                                                                                                                                               0.7s
 ✔ Container platform-trial-nats2-1          Healthy                                                                                                                                                                               0.7s
 ✔ Container platform-trial-nex1-1           Healthy                                                                                                                                                                               0.7s
[+] Running 5/5
 ✔ Container platform-trial-nats1-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-control-plane-1  Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nats2-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nats3-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nex2-1           Healthy                                                                                                                                                                               0.6s
[+] Running 5/5
 ✔ Container platform-trial-nats1-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nats2-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nats3-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-control-plane-1  Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nex3-1           Healthy                                                                                                                                                                               0.6s
[+] Running 5/5
 ✔ Container platform-trial-nats3-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nats2-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-nats1-1          Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-control-plane-1  Healthy                                                                                                                                                                               0.6s
 ✔ Container platform-trial-http-gateway-1   Healthy                                                                                                                                                                               0.6s
POST localhost:8080/api/core/beta/nats-users/30t5i02Zjov37OkddrseasT3h6I/http-gw-token

Saved HTTP_GATEWAY_TOKEN to .env

Done bootstrapping Synadia Platform, open the UI at http://localhost:8080 and login with:

    username: admin
    password: iTIU6Uvnf0pZrkZV

Check out the HTTP Gateway API documentation at http://localhost:8081/api/

❯ docker compose ps
NAME                             IMAGE                                      COMMAND                  SERVICE         CREATED          STATUS          PORTS
platform-trial-control-plane-1   registry.synadia.io/control-plane:latest   "/entrypoint.sh serv…"   control-plane   32 seconds ago   Up 32 seconds   0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp
platform-trial-http-gateway-1    registry.synadia.io/http-gateway:latest    "/nhg run"               http-gateway    5 seconds ago    Up 4 seconds    0.0.0.0:8081->8081/tcp, [::]:8081->8081/tcp
platform-trial-nats1-1           docker.io/nats:alpine                      "docker-entrypoint.s…"   nats1           20 seconds ago   Up 19 seconds   0.0.0.0:4222->4222/tcp, [::]:4222->4222/tcp, 0.0.0.0:8222->8222/tcp, [::]:8222->8222/tcp
platform-trial-nats2-1           docker.io/nats:alpine                      "docker-entrypoint.s…"   nats2           20 seconds ago   Up 19 seconds   0.0.0.0:4223->4222/tcp, [::]:4223->4222/tcp, 0.0.0.0:8223->8222/tcp, [::]:8223->8222/tcp
platform-trial-nats3-1           docker.io/nats:alpine                      "docker-entrypoint.s…"   nats3           20 seconds ago   Up 19 seconds   0.0.0.0:4224->4222/tcp, [::]:4224->4222/tcp, 0.0.0.0:8224->8222/tcp, [::]:8224->8222/tcp
platform-trial-nex1-1            registry.synadia.io/nexce:main             "/nex-ce --config /n…"   nex1            7 seconds ago    Up 7 seconds
platform-trial-nex2-1            registry.synadia.io/nexce:main             "/nex-ce --config /n…"   nex2            6 seconds ago    Up 6 seconds
platform-trial-nex3-1            registry.synadia.io/nexce:main             "/nex-ce --config /n…"   nex3            5 seconds ago    Up 5 seconds

❯ docker compose logs nex1
nex1-1  | 2025-08-05 22:49:17 [INFO] Starting nex node version=0.0.0 commit=unknown build_date=unknown node_id=NBBLZ2IARWLFXX7HY43EBBIVET66MTACW6GDLQSCMRJXR7GZUWFVOI5H name=nex1 nexus=nexus nats_server=nats://nats1:4222 start_time=2025-08-05T22:49:17Z
nex1-1  | 2025-08-05 22:49:17 [INFO] agent registered name=deno-isolate type=javascript agent_id=d4769e0c3967b93da06121d4e3
nex1-1  | 2025-08-05 22:49:17 [INFO] agent registered name=go_exec type=native agent_id=a8a1a19cfe13d42910d065e1d3
nex1-1  | 2025-08-05 22:49:17 [INFO] nex node ready

Comment thread scripts/start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants