A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
modules services pinecone
2 folders · 15 files

README.md

Pinecone Local service #

Run a background Pinecone Local test service through FluentCI's native workspace service manager and Docker backend. Typed PureScript Wasm component; requires FluentCI v0.17.4+, with the native services apply/status lifecycle API.

fluentci run pinecone start --version latest
fluentci run pinecone status
fluentci run pinecone logs --tail 50
fluentci run pinecone logs --tail 50 --follow true
fluentci run pinecone restart
fluentci run pinecone stop

For live logs, use logs --follow true. Press Ctrl-C to stop following; the background service keeps running. The native shorthand is fluentci logs module-pinecone-default -f in the same project workspace.

Default profile #

  • Image: ghcr.io/pinecone-io/pinecone-local:latest.
  • Primary port: 5080; exposed ports: 5080, 5081, 5082.
  • Readiness: tcp /; deadline 180000 ms.

Legacy in-memory Pinecone Local emulator, which upstream retired on October 7, 2026. API key pclocal is a test placeholder. Control API on 5080, first two created indexes on 5081/5082. Those ports must be published identically because index addresses are advertised. Expose additional identical ports with --ports before creating more indexes; Docker image availability and CPU support are upstream constraints.

Upstream configuration.

Typed configuration and lifecycle #

--version selects the image tag. --image accepts a complete image/digest reference; do not combine them. Start waits for readiness and returns name, state, backend, host, primary port, endpoint and every container/host port binding. Dynamic ports are returned as allocated; do not assume the host port equals the container port. Restart uses the saved native definition. Reconfiguration requires stop first. Repeated unchanged start reuses the service, and repeated stop is safe. Stop also affects native dependents, while explicit bind/named volume data is preserved.

Use project to select the same workspace across calls. Docker must be installed and its daemon and loopback port bindings accessible to the caller. Readiness, Docker/image, manager and health failures propagate without successful startup. Use cleanup/finally to stop manually started services after tests.

Public list inputs are comma-separated strings. env uses KEY=VALUE entries; ports use CONTAINER or HOST:CONTAINER; volumes use /CONTAINER or SOURCE:/CONTAINER[:ro|rw]. Optional blank lists retain defaults. Empty entries, invalid selectors and duplicate mappings are rejected before installation. CSV double quotes preserve commas within a literal token. command and readiness-command remain foreground literal argv, without shell expansion.

See COMPONENT.md for every named argument, description and native return, the shared service guide for platform/data/lifecycle semantics, and the upstream reference.

Development #

Mocked unit/contract tests run in normal module CI. The dedicated Services E2E workflow builds every real component, starts/reuses/restarts/stops it through the native manager, and checks real protocol connectivity sequentially on one runner. No services or images are run by the source generators. License: MIT.

Compose this module from code #

Requires FluentCI 0.17.6 or newer for generated pipeline bindings. From your caller module's directory, add the dependency:

fluentci add pinecone --path /path/to/fluentci-modules/services/pinecone

For a published module, use fluentci add @fluentci.io/pinecone@VERSION with an available version. Commit the caller's manifest and lockfile. FluentCI generates named bindings from the installed component's WIT; no handwritten FFI or CLI subprocess is needed. Include generated source directories in the caller's SDK project. The callee can use a different SDK from the caller.

Start pinecone for integration tests using ghcr.io/pinecone-io/pinecone-local:latest. Return the allocated endpoint to the caller; use it when configuring your test client.

Replace the sample organization, paths and identifiers with your own. Configure credentials through your CI secret provider before running authenticated operations. Optional arguments use the callee's defaults, and public list fields use comma-separated strings. See COMPONENT.md for argument descriptions and return types.

These examples use the generated composition API and builder chaining in FluentCI 0.17.6; full cross-SDK compilation and execution coverage is still pending. See composition support and limitations.

For services, register stop with the same project/name in failure-safe cleanup before running tests. A later ordinary stop step will be skipped when a preceding step fails. This short example starts the service using its default scoped name; it is not a complete service lifecycle. Elixir Flow does not yet offer failure-safe cleanup.

PureScript #

module Main where

import Prelude
import Effect (Effect)
import FluentCI.Flow as Flow
import FluentCI.Modules.Pinecone as Pinecone

run :: Effect String
run =
  Flow.pipeline "pinecone-start"
    # Flow.workdir "."
    # Pinecone.start (Pinecone.startArgs)
    # Flow.map (\result -> result.endpoint)
    # Flow.run

Gleam #

import fluentci/flow
import fluentci_modules/pinecone

pub fn run() -> String {
  flow.pipeline("pinecone-start")
  |> flow.workdir(".")
  |> pinecone.start(pinecone.start_args())
  |> flow.map(fn(result) { result.endpoint })
  |> flow.run
}

Use Gleam's JavaScript target for the Wasm guest. BEAM escripts used for repository automation are separate from component guests.

Elixir #

defmodule Main do
  use FluentCI.Plugin
  alias FluentCI.Flow
  alias FluentCI.Modules.Pinecone

  defplugin run do
    Flow.pipeline("pinecone-start")
    |> Flow.workdir(".")
    |> Pinecone.start(%{})
    |> Flow.stdout()
  end
end

Elixir compiles this sequence to Rust/Wasm. Its initial Flow API does not yet provide the typed result callbacks or cleanup combinators of the other examples.

ClojureScript #

(ns main.plugin
  (:require [fluentci.flow :as flow]
            [fluentci-modules.pinecone :as pinecone]))

(defn run []
  (-> (flow/pipeline "pinecone-start")
      (flow/workdir ".")
      (pinecone/start {})
      flow/run!))

ReScript #

let run = (): string =>
  Flow.pipeline("pinecone-start")
  ->Flow.workdir(".")
  ->FluentciModulesPinecone.start(FluentciModulesPinecone.startArgs)
  ->Flow.map(result => result.endpoint)
  ->Flow.run

Python #

from fluentci.flow import pipeline
from fluentci_modules import pinecone


def run() -> str:
    return (
        pipeline("pinecone-start")
        .workdir(".")
        .pipe(pinecone.start, {})
        .map(lambda result: result.endpoint)
        .run()
    )

TypeScript #

import * as flow from "./fluentci_modules/flow";
import * as pinecone from "./fluentci_modules/pinecone/index";

export function run(): string {
  return flow.pipeline("pinecone-start")
    .workdir(".")
    .pipe(pinecone.start, {})
    .map(result => result.endpoint)
    .run();
}

Python and TypeScript use FluentCI builder chains: .pipe(module.function, args) composes generated module functions with .workdir, .env, and .exec. Functions return a pipeline carrying their typed result. Use a generated result callback (With/_with, or a callback argument in TypeScript/Python) when a later module needs a preceding result; use Flow's map operation to select a result field. Execution begins at run (or the Elixir plugin terminal), in declared order.

Exported functions #

Function Purpose
start Start an idempotent background service through FluentCI’s native workspace service manager and wait for readiness.
stop Stop only this named service through the native manager; preserve explicitly mounted data. Native dependents are stopped too.
restart Restart the existing native service definition and wait for readiness.
status Return the service’s native lifecycle state and actual loopback port bindings.
logs Read native service logs; optionally follow new output until interrupted, without starting or stopping a service.