Logo: Greptimedb Development Docker Image

Greptimedb Development Docker Image

OrganisatiounBeléift
GreptimeTeam
greptimedb-development-docker-image

Builds a development-only GreptimeDB Docker image from a local debug binary for local-cluster testing, and optionally pushes it to a development registry. Use when the user asks to package, build, tag, publish, or cross-build a non-release GreptimeDB or GreptimeDB Enterprise image for debugging.

Iwwersiicht

EditeurGreptimeTeam
Repositorygreptimedb
Skill-Nummgreptimedb-development-docker-image
Stären
6.7K
Forks
562
Matgeliwwert Dateien
11
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 11 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    GreptimeTeam huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Greptimedb Development Docker Image an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/GreptimeTeam/greptimedb/tree/main/.agents/skills/greptimedb-development-docker-image
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GreptimeTeam/greptimedb.git /tmp/greptimedb
mkdir -p .claude/skills
cp -r /tmp/greptimedb/.agents/skills/greptimedb-development-docker-image .claude/skills/greptimedb-development-docker-image
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Greptimedb Development Docker Image an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Greptimedb Development Docker Image automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Greptimedb Development Docker Image net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

GreptimeDB Development Docker Image

Goal

Package a locally built GreptimeDB binary into a development-only Docker image for debugging and local-cluster testing, optionally push it to a development registry, and retain the non-secret image settings in .env for the next build. It is not a release-image workflow and must not be used to publish a production or release artifact.

This skill follows the documented development-image build procedure:

  • Build greptime with Cargo's nightly profile.
  • Copy the target binary into the Docker build context as ./greptime.
  • Build the supplied Dockerfile, which uses Ubuntu 24.04 only as the runtime base image and exposes the greptime binary as its entrypoint.

Inputs

Collect or discover the following before any build or push:

InputDiscovery and rule
Source repositoryTreat the directory in which this skill is invoked as the default workspace. Include it as an editable field in the batch configuration; do not ask a separate confirmation. Do not assume open-source versus Enterprise.
Edition and binaryDefault to greptime; use the binary name the user requests for Enterprise builds. The copied Docker-context filename must always be greptime.
Cargo profile and binary sourceInclude this in the batch configuration. Default to rebuilding nightly; reuse an existing binary only after the user explicitly accepts that its freshness is unverified.
Target platformPreselect linux/amd64 unless Docker's server is linux/arm64, then preselect linux/arm64. Let the user override it in the batch configuration. Ubuntu 24.04 is the runtime base image, not a target-platform choice. Each image has exactly one target platform, but it may differ from the host platform.
Build modeAsk whether the user wants a locally loadable debug image or a registry push.
Registry/repositoryRead IMAGE_REGISTRY and IMAGE_REPOSITORY only from the selected workspace's .env and prefill them in the batch configuration. Example: registry.example.com/team + greptimedb-dev.
TagRead IMAGE_TAG only from the selected workspace's .env and prefill it in the batch configuration. When the tag exists in the selected registry, preselect an incremented version.

Use the image reference ${IMAGE_REGISTRY}/${IMAGE_REPOSITORY}:${IMAGE_TAG}. If the registry is intentionally empty, omit its slash rather than producing a leading slash.

Interactive Workflow

Use the platform's interactive prompt component for every question, selection, and confirmation. Do not ask an open-ended text question when a single-choice, multi-select, or confirmation component can represent the decision. If the platform does not provide an interactive component, use the equivalent numbered or lettered prompt below and wait for input before continuing.

Batch configuration

Minimize user round trips: run the collector first against the invocation directory, then use one interactive form or batched prompt to collect workspace, edition/binary, profile/reuse-or-rebuild choice, target platform, build mode, registry/repository, tag, and whether to inspect the configured registry tag. Use the invocation directory as the editable workspace default. Prefill collector values and mark recommended defaults. If the user changes workspace, rerun the collector for that workspace without asking another configuration question. Only ask a follow-up if information is missing or invalid, or a safety gate is required. Treat unchanged prefilled values as accepted.

Keep separate confirmation components only for elevated privileges: sudo, package installation, and privileged QEMU setup. Use one final confirmation for all non-privileged selected work.

Always offer Cancel for an action that can write state, build, push, or require elevated privileges. Display the relevant preview before the user confirms it: source/binary path, file architecture result, platform(s), image reference, build mode, and non-secret .env values.

Batch configuration fields

Use single-choice controls inside the one batch form for mutually exclusive choices:

DecisionRequired choices
Cargo outputRebuild nightly (recommended), reuse an existing binary only with a freshness-unverified acknowledgement, choose a profile/binary
Target platformlinux/amd64 (default unless Docker server is arm64), linux/arm64 (default when Docker server is arm64). The selected image may be cross-built with Buildx.
Build modeLoad locally (recommended), push to development registry
Registry/repositoryUse .env defaults, enter new values
TagUse proposed increment when the configured tag exists, enter a version

When push is selected and the image configuration is complete, automatically run the read-only registry-tag check. It may return unknown; do not treat that as a missing tag.

Use one final confirmation for all selected non-privileged operations:

  • persist changed non-secret image settings to .env;
  • run the selected Cargo build or reuse the resolved binary;
  • prepare the Docker context;
  • build, verify, and, when selected, push the image.

The final confirmation must clearly state: “This creates a development and local-cluster test image, not a release or production artifact.”

For a real multi-select only, use lettered choices ([A], [B]) and accept all, none, or cancel; otherwise use single-choice components.

Preflight context collection

Before asking the profile, registry, or tag questions, run the bundled, read-only collector. It works on macOS and Linux, does not invoke cargo build, and emits JSON that can be shown or summarized to the user:

bash
python3 <skill-dir>/scripts/collect_context.py \
  --source <source-checkout> \
  --bin greptime \
  --profile nightly \
  [--target <rust-target>]

Use its report to identify:

  • missing IMAGE_REGISTRY, IMAGE_REPOSITORY, or IMAGE_TAG values in the selected workspace's .env;
  • Cargo binary targets available in the workspace and whether the requested --bin exists;
  • the resolved Cargo target directory, expected profile output path, and whether that binary already exists; and
  • macOS/Linux host architecture plus Docker's server platform when Docker is available.

When push is selected and image configuration is complete, rerun the collector with --check-registry-tag and all selected image values. It uses the selected engine's read-only manifest inspection and returns exists or unknown; unknown includes an unavailable registry, an absent tag, or missing authentication and must not be treated as an absent tag.

bash
python3 <skill-dir>/scripts/collect_context.py \
  --source <source-checkout> \
  --bin <binary> \
  --profile <profile> \
  --engine <docker|podman> \
  --registry <registry> \
  --repository <repository> \
  --tag <tag> \
  --check-registry-tag

When the status is exists and the tag ends in a number, preselect the collector's candidate_tag as the next development tag. The user must still confirm it before .env is updated or an image is built. Never use automatic incrementing as permission to overwrite or push an existing image.

If Cargo metadata or the requested binary target is unavailable, stop before building and ask the user to correct the source path or binary target.

The profile/binary choice is a field in the batch configuration, not a separate question. Its default is the existing nightly output when present:

text
Question: Which Cargo build output should package this image?
Options:
- Rebuild nightly (Recommended): run Cargo with `--profile nightly`, then use its output.
- Reuse nightly output: use the existing output only after showing its path, modification time, size, and matching platform; freshness is unverified.
- Choose profile or binary: provide a different Cargo profile or an explicit binary path.

Do not infer that a binary under target/debug, target/release, or another profile is suitable. For an existing binary, show its resolved path and run file before asking for final build confirmation.

Environment State

The image configuration lives only in the selected workspace's .env. The collector reads only the following keys and never reads or displays other .env values:

dotenv
IMAGE_REGISTRY=registry.example.com/team
IMAGE_REPOSITORY=greptimedb-dev
IMAGE_TAG=dev-001
  1. Read .env if it exists. Ignore blank lines and # comments.
  2. Show the discovered registry, repository, and proposed tag to the user.
  3. Include registry/repository and tag in the batch configuration even when values already exist; saved values are defaults, not authorization to reuse them.
  4. Compare the selected configuration with the three current managed values. If all match, skip .env confirmation and do not update the file. Otherwise, preview only the changed IMAGE_* values, request confirmation, and update the file while preserving unrelated entries and comments.
  5. Never put registry credentials, access tokens, passwords, or docker login output in .env, build commands, logs, or responses. Ask the user to log in themselves if a push needs authentication.

For a repeated build, offer an incremented tag before asking. Use scripts/next_image_tag.py --tag <existing-tag> to calculate it. It increments the final numeric component while preserving zero padding:

text
weny-2025-0715-01 -> weny-2025-0715-02
v0.1.4 -> v0.1.5
debug-009 -> debug-010

If the saved tag has no trailing number, ask the user for the next tag rather than inventing a versioning convention. Do not overwrite an existing image tag without explicit user confirmation.

Only if a managed value is missing or differs, persist the values with the bundled helper after confirmation instead of hand-editing the file:

bash
python3 <skill-dir>/scripts/update_image_env.py \
  --env <source-checkout>/.env \
  --registry <registry> \
  --repository <repository> \
  --tag <tag>

Build Procedure

1. Inspect the host and container tooling

Run these checks and report the selected path:

bash
uname -s
uname -m
docker version --format '{{.Server.Os}}/{{.Server.Arch}}'
docker buildx version
docker buildx inspect --bootstrap

For a native-platform build, Podman can be used if Docker is unavailable. For any non-native request, require Docker Buildx. Do not silently fall back to a native build when the requested image platform differs.

If the requested target is unavailable, stop and ask the user to configure a Buildx builder and cross-compilation toolchain externally. Do not automate privileged QEMU or binfmt setup, and never run an unpinned privileged image.

2. Build the executable for the image platform

From the source checkout, build the requested binary. For open-source amd64:

bash
<skill-dir>/scripts/build_binary.sh \
  --source <source-checkout> --package cmd --bin greptime --profile nightly

For open-source arm64:

bash
<skill-dir>/scripts/build_binary.sh \
  --source <source-checkout> \
  --package cmd \
  --bin greptime \
  --profile nightly \
  --target aarch64-unknown-linux-gnu

For Enterprise, use the user-provided executable target, for example:

bash
<skill-dir>/scripts/build_binary.sh \
  --source <source-checkout> --bin greptime-ent-cloud --profile nightly

For a user-selected profile, replace nightly in the helper call and resolve the binary under target/<profile>/<binary> (or target/<rust-target>/<profile>/<binary> for cross-compilation). Reuse the existing target file only when the interactive profile question selected reuse; otherwise invoke the helper to rebuild it.

Do not use a binary compiled for the host architecture in an image intended for another architecture. Determine the binary path from the Cargo target and profile, then copy it into the Docker context as greptime:

bash
cp <source-target-binary> <build-context>/greptime

Verify it before building the image with file <build-context>/greptime; its reported architecture must match the requested target platform.

Create a fresh isolated build context (never use the repository root) and use the bundled preparation script. The helper rejects an existing Dockerfile or binary output to prevent accidental context reuse:

bash
<skill-dir>/scripts/prepare_context.sh \
  --context "$(mktemp -d)" \
  --binary <source-target-binary> \
  --dockerfile <skill-dir>/assets/Dockerfile \
  --platform <platform>

3. Build or push the image

Run the command only after the user confirms the final image reference and whether it should be pushed.

Use the bundled build helper rather than spelling out individual Docker or Podman commands. It follows the existing scripts' Docker-first/Podman-fallback behavior, uses Buildx for a non-native Docker request, and accepts exactly one target platform per image:

bash
<skill-dir>/scripts/build_image.sh \
  --context <build-context> \
  --image <image-reference> \
  --platform <platform> \
  --mode local|push

--mode local builds a native image locally or uses docker buildx --load for a non-native image. --mode push pushes the selected single-platform image. The helper never pushes in local mode.

This is intentionally a runtime image built from a precompiled binary, not a multi-stage Dockerfile. Ubuntu 24.04 is the runtime base image only; select one target platform separately as linux/amd64 or linux/arm64. Only introduce a multi-stage Dockerfile if the user asks to compile within Docker or the local Rust toolchain cannot build the required target. Keep the final Ubuntu 24.04 runtime stage and existing entrypoint unless the user asks to change runtime behavior.

At the final confirmation, repeat that the selected reference is a development/local-cluster test image, not a release artifact. If the user requests a release or production image, stop and direct them to the release process instead.

4. Verify the result

For a local image, use the selected engine to inspect its architecture and start it with --help:

bash
docker image inspect <image-reference> --format '{{.Os}}/{{.Architecture}}'
docker run --rm <image-reference> --help

For Podman, use podman image inspect <image-reference> and podman run --rm <image-reference> --help. For a pushed Podman image, use podman manifest inspect <image-reference>.

For a pushed image, inspect its remote manifest:

bash
docker buildx imagetools inspect <image-reference>

Report the final image reference, target platform, source binary path, and whether the image was loaded locally or pushed.

Safety Rules

  • This skill is only for development and local-cluster testing. Never present its image as a production, release, or officially published artifact.
  • Never push by default. Local debug builds should use a local tag and load the image unless the user explicitly requests a push.
  • Do not run docker login, privileged QEMU setup, package installation, or overwrite a tag without confirmation.
  • Do not delete existing images, builders, binaries, or .env entries as part of this workflow.
  • Stop and explain if Docker's server is unavailable, Buildx cannot support the requested platform, or the copied binary architecture does not match the image platform.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Greptimedb Development Docker Image?

Builds a development-only GreptimeDB Docker image from a local debug binary for local-cluster testing, and optionally pushes it to a development registry. Use when the user asks to package, build, tag, publish, or cross-build a non-release GreptimeDB or GreptimeDB Enterprise image for debugging.

Firwat Greptimedb Development Docker Image op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Greptimedb Development Docker Image besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Greptimedb Development Docker Image an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/GreptimeTeam/greptimedb/tree/main/.agents/skills/greptimedb-development-docker-image an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Greptimedb Development Docker Image benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Greptimedb Development Docker Image benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Greptimedb Development Docker Image domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Greptimedb Development Docker Image gratis?

Jo. GreptimeTeam huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇