Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
57a8e5e
docs: Document the container image
jedevc Nov 12, 2026
f072a84
docs: Document the container image (#637)
craciunoiuc Nov 16, 2026
c3ce36c
refactor(config)!: Group the registry settings
craciunoiuc Nov 16, 2026
ecfef72
fix(images): Skip TLS for tokens of insecure hosts
craciunoiuc Nov 16, 2026
c8bbac2
feat(images): Add registry host and insecure
craciunoiuc Nov 16, 2026
c51f9ac
feat(login): Store the control plane registry
craciunoiuc Nov 16, 2026
f77c0b6
ci: Pin third-party actions by commit
jedevc Nov 17, 2026
51baad3
ci: Pin images by digest
jedevc Nov 17, 2026
65b41e8
ci(release): Pin the goreleaser version
jedevc Nov 17, 2026
944a56d
feat(login): Store the control plane registry (#654)
craciunoiuc Nov 17, 2026
62d2df3
ci: Pin third-party actions by commit (#659)
jedevc Nov 17, 2026
f2fe387
feat(mcpserver): Export the MCP server
dragosgheorghioiu Nov 17, 2026
151221b
test(mcpserver): Test from inside the package
dragosgheorghioiu Nov 17, 2026
4405662
feat(tools): Export the MCP server (#660)
jedevc Nov 17, 2026
6864de9
ci: Log in to Docker Hub before the QEMU setup
dragosgheorghioiu Nov 17, 2026
0aca467
ci: Log in to Docker Hub before the QEMU setup (#661)
craciunoiuc Nov 17, 2026
dc2ffbf
gomod(deps): Bump brotli to v1.3.0
jedevc Nov 17, 2026
1d00289
feat(cmd): Add UDP services
craciunoiuc Nov 16, 2026
18b5554
gomod(deps): Bump brotli to v1.3.0 (#662)
jedevc Nov 18, 2026
25a9245
fix(cmd): Read the build URL env on bare --remote
dragosgheorghioiu Nov 18, 2026
ab7a8ec
fix(cmd): Give builder commands a default URL
dragosgheorghioiu Nov 18, 2026
8da8c24
fix(cmd): Refuse plain HTTP in builder commands
dragosgheorghioiu Nov 18, 2026
777141c
feat(cmd): Add --metro to builder commands
dragosgheorghioiu Nov 18, 2026
6c29c98
fix(cmd): Cancel a build that lost its progress
dragosgheorghioiu Nov 18, 2026
aa9b942
fix(cmd): Report the cancel of a remote build
dragosgheorghioiu Nov 18, 2026
1ce5396
fix(cmd): Skip unset --build-arg in remote builds
dragosgheorghioiu Nov 18, 2026
08e6ba1
fix(cmd): Name a missing remote build input
dragosgheorghioiu Nov 18, 2026
3ee2ef6
docs(cmd): Fix the --arch help for remote builds
dragosgheorghioiu Nov 18, 2026
804f01e
docs(cmd): Say that remote --output needs a tag
dragosgheorghioiu Nov 18, 2026
33613ef
docs(cmd): Show the --remote=<url> form in help
dragosgheorghioiu Nov 18, 2026
3edb97e
gomod(deps): Bump x/build and x/image-spec
dragosgheorghioiu Nov 18, 2026
bf338ac
fix(cmd): Send a Containerfile as a Dockerfile
dragosgheorghioiu Nov 18, 2026
276e00d
fix(cmd): Fix remote build CLI findings (#663)
dragosgheorghioiu Nov 18, 2026
bb1159d
fix(model): Print a removed key once
nurof3n Nov 19, 2026
933673c
fix(model): Print a removed key once (#664)
craciunoiuc Nov 19, 2026
017ef1c
docs(cmd): Say that max builds is per replica
dragosgheorghioiu Nov 20, 2026
c0a3c5a
docs(cmd): Say which builds are waiting
dragosgheorghioiu Nov 20, 2026
918804f
gomod(deps): Bump x/build
dragosgheorghioiu Nov 20, 2026
c06d192
test(integration): Keep Dockerfile digests unique
dragosgheorghioiu Nov 20, 2026
a913e7f
docs(cmd): Say what builder list counts (#665)
dragosgheorghioiu Nov 20, 2026
72fec6b
test(integration): Keep image digests unique
dragosgheorghioiu Nov 20, 2026
0efaccd
test(integration): Keep image digests unique (#666)
dragosgheorghioiu Nov 20, 2026
5311c2c
feat(cmd): Set the pull policy on every image
craciunoiuc Nov 20, 2026
dc81909
feat(value): Fill map fields from dotted keys
craciunoiuc Nov 20, 2026
5e8fff9
feat(cmd): Send headers when fetching an image
craciunoiuc Nov 20, 2026
77d8dc6
feat(cmd): Send headers when fetching an image (#668)
craciunoiuc Nov 20, 2026
958ca26
gomod(deps): Bump the SDK and x/kraftfile
craciunoiuc Nov 20, 2026
8b41cc8
gomod(deps): Bump the SDK and x/kraftfile (#670)
dragosgheorghioiu Nov 20, 2026
daf28dd
gomod(deps): Bump the go-deps group with 6 updates
dependabot[bot] Nov 22, 2026
0f22ae7
fix(mcpserver): Refuse server files in tool calls
dragosgheorghioiu Nov 23, 2026
1b6fc67
fix(mcpserver): Refuse server files in tool calls (#672)
craciunoiuc Nov 23, 2026
b0991d2
fix(cmd): Say when --plugin-image attaches
dragosgheorghioiu Nov 23, 2026
bab089b
test(mcpserver): Quote the temp dir as JSON
dragosgheorghioiu Nov 23, 2026
990f1fb
test(mcpserver): Quote the temp dir as JSON (#674)
dragosgheorghioiu Nov 23, 2026
e4953b7
fix(cmd): Say when --plugin-image attaches (#673)
dragosgheorghioiu Nov 23, 2026
fd9753f
feat(cmd): Add UDP services (#653)
craciunoiuc Nov 24, 2026
79e210b
feat(mcpserver): Serve a wrapped handler
dragosgheorghioiu Nov 24, 2026
6c05436
feat(mcpserver): Serve a wrapped handler (#676)
dragosgheorghioiu Nov 24, 2026
f5cb432
gomod(deps): Bump the go-deps group with 6 updates (#671)
jedevc Nov 24, 2026
f623d3a
chore(deps): Bump image-spec and go-archivefs
nurof3n Nov 16, 2026
340fa2d
chore(deps): Bump image-spec and go-archivefs (#656)
craciunoiuc Nov 24, 2026
5177254
fix(mcp): Cap the output of a tool call
craciunoiuc Nov 25, 2026
3ec8798
fix(mcp): Give sandbox commands a time limit
craciunoiuc Nov 25, 2026
644db22
fix(mcp): Cap the output of a tool call (#678)
craciunoiuc Nov 25, 2026
ec47d75
gomod(deps): Bump the sandbox SDK
craciunoiuc Nov 25, 2026
a26ebe7
fix(mcp): Cap the size of a sandbox file read
craciunoiuc Nov 25, 2026
765647b
fix(mcp): Cap the size of a sandbox file read (#679)
craciunoiuc Nov 25, 2026
f22ea1b
gomod(deps): Bump the SDK
craciunoiuc Nov 25, 2026
e6db4e7
fix(tui): Send reader messages to their own panel
craciunoiuc Nov 24, 2026
800d2ef
feat(tui): Load a reader panel on focus
craciunoiuc Nov 24, 2026
b82cf2d
feat(cmd)!: Show the lineage in history commands
craciunoiuc Nov 24, 2026
c74e6fd
feat(cmd)!: Show the lineage in history commands (#677)
craciunoiuc Nov 26, 2026
0cbf0fc
gomod(deps): Update x to a81b5204c19b
jedevc Nov 26, 2026
030a4ed
test(integration): Use the staging sandbox plugin
craciunoiuc Nov 26, 2026
d876d84
gomod(deps): Update x to a81b5204c19b (#681)
jedevc Nov 26, 2026
c07fa96
gomod(deps): Pin lipgloss to upstream main
jedevc Nov 26, 2026
9e49fa6
test(integration): Always pull the sandbox plugin
dragosgheorghioiu Nov 26, 2026
03e3f1c
test(integration): Use the staging sandbox plugin (#682)
craciunoiuc Nov 27, 2026
492674a
chore: Raise the remote Taskfile timeout
dragosgheorghioiu Nov 27, 2026
4035757
chore: Raise the remote Taskfile timeout (#684)
dragosgheorghioiu Nov 27, 2026
66fb2db
gomod(deps): Pin lipgloss to upstream main (#683)
jedevc Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Run actionlint
uses: unikraft-cloud/x/.github/actions/actionlint@prod-staging
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v7
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod

Expand All @@ -66,7 +66,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand All @@ -76,15 +76,15 @@ jobs:
${{ github.job }}-${{ runner.os }}-go-

- name: Install Task
uses: go-task/setup-task@v2
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0

- name: Build
shell: bash
run: |
VERSION=pr-${{ github.event.number }} GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} task --yes ${{ matrix.task || 'cli' }}

- name: Upload build artifacts to GitHub
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: github.event_name == 'push'
with:
name: unikraft-cli-${{ matrix.GOOS }}-${{ matrix.GOARCH }}-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
check-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: go-task/setup-task@v2
- uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0

- uses: actions/setup-go@v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod

Expand All @@ -42,7 +42,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Setup Task
uses: go-task/setup-task@v2
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0

- name: Setup Go
uses: actions/setup-go@v7
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod

Expand All @@ -52,7 +52,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand All @@ -67,7 +67,7 @@ jobs:
make docs

- name: Upload docs artifacts to GitHub
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: github.event_name == 'push'
with:
name: unikraft-docs-${{ github.event.pull_request.number || github.sha }}
Expand All @@ -77,7 +77,7 @@ jobs:
overwrite: true

- name: Upload man artifacts to GitHub
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: github.event_name == 'push'
with:
name: unikraft-man-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0

- name: Fetch all tags
shell: bash
run: git fetch --force --tags

- uses: actions/setup-go@v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: go.mod

Expand All @@ -41,7 +41,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand Down Expand Up @@ -124,16 +124,16 @@ jobs:
export YTT_DEB_PRERELEASE_VERSION
make goreleaser-yaml

- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN_UNIKRAFT: ${{ secrets.GH_MIRROR_PAT }}
Expand All @@ -142,7 +142,7 @@ jobs:
UNIKRAFT_POSTHOG_API_KEY: ${{ secrets.UNIKRAFT_POSTHOG_API_KEY }}
UNIKRAFT_POSTHOG_HOST: ${{ secrets.UNIKRAFT_POSTHOG_HOST }}
with:
version: latest
version: v2.20.2
args: release --clean

- name: Publish to APT repository
Expand Down
53 changes: 27 additions & 26 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v7
- uses: go-task/setup-task@v2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
- name: Authenticate git for remote Taskfiles
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
- uses: actions/setup-go@v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: 'go.mod'

Expand All @@ -48,7 +48,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand Down Expand Up @@ -88,30 +88,30 @@ jobs:
UNIKRAFT_SERVER_STABLE: stable
UNIKRAFT_SERVER_PROD: prod
steps:
- uses: actions/checkout@v7
- uses: go-task/setup-task@v2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
- name: Authenticate git for remote Taskfiles
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
- uses: actions/setup-go@v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: 'go.mod'

# Multi-platform rootfs builds run the target architecture's binaries,
# which needs a binfmt handler registered with the kernel.
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
with:
platforms: arm64

- name: Login to Docker Hub
uses: unikraft-cloud/x/.github/actions/login-docker-hub@prod-staging
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Multi-platform rootfs builds run the target architecture's binaries,
# which needs a binfmt handler registered with the kernel.
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
with:
platforms: arm64

- name: Set Go variables
id: goenv
run: |
Expand All @@ -122,7 +122,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand Down Expand Up @@ -165,6 +165,7 @@ jobs:
UNIKRAFT_ENDPOINT: ${{ secrets[format('UNIKRAFT_ENDPOINT_{0}', matrix.target)] }}
UNIKRAFT_X_TEST_SERVER: ${{ env[format('UNIKRAFT_SERVER_{0}', matrix.target)] }}
UNIKRAFT_X_TEST_BUILD_URL: ${{ matrix.target == 'STABLE' && secrets.UNIKRAFT_BUILD_URL_STABLE || '' }}
UNIKRAFT_X_TEST_UDP_IP: ${{ matrix.target == 'STAGING' && vars.UNIKRAFT_UDP_IP_STAGING || '' }}

# The hosted Windows runners reach only the public prod endpoint. The runners
# take turns, so that both do not use the same organization at once.
Expand All @@ -184,31 +185,31 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v7
- uses: go-task/setup-task@v2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
- name: Authenticate git for remote Taskfiles
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
- uses: actions/setup-go@v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version-file: 'go.mod'

- name: Login to Docker Hub
uses: unikraft-cloud/x/.github/actions/login-docker-hub@prod-staging
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Multi-platform rootfs builds run the target architecture's binaries,
# which needs a binfmt handler registered with the kernel.
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v4
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
with:
platforms: arm64

- name: Login to Docker Hub
uses: unikraft-cloud/x/.github/actions/login-docker-hub@prod-staging
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set Go variables
id: goenv
run: |
Expand All @@ -219,7 +220,7 @@ jobs:
} >>"$GITHUB_OUTPUT"

- name: Go caches
uses: actions/cache@v6
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
${{ steps.goenv.outputs.cache }}
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.24
FROM alpine:3.24.4@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/unikraft /usr/local/bin/unikraft
ENTRYPOINT ["unikraft"]
2 changes: 1 addition & 1 deletion .taskrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
remote:
insecure: false
offline: false
timeout: "5s"
timeout: "30s"
cache-dir: ~/.cache/taskfiles
cache-expiry: "24h"
trusted-hosts:
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This repo contains the Go-based Unikraft CLI. Use this file for contributor-faci
- Core `Model` interface (`pkg/model`) models API objects with `Type`, `Key`, `Fields`, and `Raw`, and is extended by get/list/create/edit/delete behaviors.
- Model data is expressed as a tree of `Field` nodes: each node has a name, optional value, nested subfields, and an `Elem` template for homogeneous arrays; patch metadata and verbosity drive editing and output.
- Model utilities live alongside the model layer (inside `pkg/model`): struct↔field conversion, field cloning/merging/deduping, map/slice encoding, path-based filtering/selection, and patch helpers for edits.
- `pkg/` is public API, used by other CLIs (like consolectl) to build their own commands, TUI and MCP server on the model layer: `pkg/model` (with `cmd`, `tui`, `mcp`, `patch` and `value`), `pkg/mcpserver` and `pkg/logfmt`. Keep anything specific to Unikraft Cloud out of it, and avoid exposing `internal/` types in its exported API.
- `pkg/` is public API. `pkg/model` (with `cmd`, `tui`, `mcp`, `patch` and `value`), `pkg/mcpserver` and `pkg/logfmt` are generic: other CLIs (like consolectl) build their own commands, TUI and MCP server on them, so keep anything specific to Unikraft Cloud out of them. `pkg/mcpserver/cli` serves the MCP server of `unikraft mcp` to other CLIs, which cannot import its tools from `internal/`. Avoid exposing `internal/` types in the exported API of `pkg/`.
- Everything else lives under `internal/` and is organized by domain: configuration/profile handling, API client communication, the Unikraft Cloud models and commands, output utilities, multi-region support, and shared helpers.
- Build artifacts and generated docs go to `dist/`; developer tooling/scripts live at the repo root and under `tools/`.

Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# syntax=docker/dockerfile:1

FROM --platform=$BUILDPLATFORM golang:1.27.4-alpine AS build
FROM --platform=$BUILDPLATFORM golang:1.27.4-alpine@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc924fb9100d1d8757c1575b280 AS build
WORKDIR /src
ARG TARGETOS TARGETARCH
RUN --mount=type=bind,target=. \
Expand All @@ -13,6 +11,6 @@ RUN --mount=type=bind,target=. \
-X unikraft.com/x/version.Issues=https://github.com/unikraft-cloud/cli/issues" \
./cmd/unikraft

FROM alpine:3.24
FROM alpine:3.24.4@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
COPY --from=build /out/unikraft /usr/local/bin/unikraft
ENTRYPOINT ["unikraft"]
Loading
Loading