Socket
Book a DemoInstallSign in
Socket

shomix-compute-test

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

shomix-compute-test

Typescript library for deploying compute instances to Decentralised Compute via Spheron

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Spheron

Compute SDK

This package provides support for working with Spheron Compute organization.

Usage

The package exports SpheronComputeClient class, which includes methods for working with clusters, marketplace apps, cluster instances and their configurations. The constructor of SpheronComputeClient takes in one parameter token. Check the Access Token section for information on how to create a token.

import SpheronComputeClient from "@spheron/compute";
...
const computeClient = new SpheronComputeClient({ token });
await computeClient.instance.create(
    configuration: {
      image: dockerImage,
      tag: dockerImageTag,
      instanceCount: numberOfInstances,
      ports: [{ containerPort: containerPort, exposedPort: exposedPort }],
      env: [{ key:"key", value: "value", isSecret: isSecret }],
      commands: [],
      args: [],
      region: deployReegion,
      machineImageName: machineType,
    },
    topicId: eventStreamSession,
    clusterName: clusterName,
    healthCheckUrl: healthCheckPath,
    healthCheckPort: healthChekcPort,
  }
);

For more information about the Compute methods, check out the DOCS

Access Token

To create the token that is used with the SpheronComputeClient, follow the instructions in the DOCS. When you are creating the tokens, please choose compute type in the dashboard.

Learn More

You can learn more about Spheron and Compute SDK here:

Keywords

Compute

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts