Skip to content

Installation & Quickstart ​

Arka ships as a single static Go binary (with embedded React 19 Console), dual-architecture container images, and an OCI Helm Chart. Download the release package for your platform directly below, or pick one self-contained installation path to go from zero to running.

Downloads & Official Distribution (v1.0.0) ​

ArtifactOfficial Location / Direct LinkNotes
GitHub Releases (All Downloads)All Releases · v1.0.0 ReleaseServer bundles, standalone arkactl, Helm .tgz, checksums & Cosign bundles
Server Container Image (GHCR)ghcr.io/ccsert/arka (tag 1.0.0)linux/amd64 + linux/arm64 with arka, arkactl, and embedded Console
Scanner Sidecar Image (GHCR)ghcr.io/ccsert/arka-scanner (tag 1.0.0)Optional isolated Syft + Grype offline vulnerability scanner
Kubernetes Helm Chartoci://ghcr.io/ccsert/charts/arka · Download arka-1.0.0.tgzMulti-replica HA deployment (OCI registry or air-gapped .tgz)
Source Repo & Quickstart FilesGitHub ccsert/arka · docker-compose.quickstart.yml · scripts/quickstart.shLocal Docker Compose tryout stack and source-build entrypoint

Direct Binary Downloads (v1.0.0) ​

Platform & ArchitectureServer Bundle (arka + arkactl + Console)Client Only (Standalone arkactl)
Linux x86_64 (amd64)arka-v1.0.0-linux-amd64.tar.gzarkactl-v1.0.0-linux-amd64.tar.gz
Linux ARM64 (arm64)arka-v1.0.0-linux-arm64.tar.gzarkactl-v1.0.0-linux-arm64.tar.gz
macOS Apple Silicon (arm64)arka-v1.0.0-darwin-arm64.tar.gzarkactl-v1.0.0-darwin-arm64.tar.gz
macOS Intel (amd64)arka-v1.0.0-darwin-amd64.tar.gzarkactl-v1.0.0-darwin-amd64.tar.gz
Windows x86_64 (amd64)(Use Docker, Linux, or WSL2 for the server)arkactl-v1.0.0-windows-amd64.zip

Verification & air-gap metadata: SHA256SUMS.txt · SHA256SUMS.txt.bundle · release-manifest.json · Release Verification Guide.

Version pinning vs. :latest tags: Stable releases such as v1.0.0 advance :latest, while pre-release tags (-rc.*) never move :latest. In production, always pin an explicit version (such as 1.0.0) or an immutable @sha256:... digest.


Choose Your Installation Path ​

Do not mix Docker Compose quickstart, bare-metal binary setup, Kubernetes Helm, and client-only installation—each path below is completely self-contained:

PathBest ForPrerequisitesTimeJump To
Path A · Local Tryout (Docker Compose)Evaluating Arka locally, testing the Console and pushing/pulling your first packageDocker Engine + Compose v2.17+, curl~3 minPath A
Path B · Single Host / VM (Binary + PG 16)Dedicated Linux/macOS host or VM without KubernetesPostgreSQL 16, server tarball above, openssl~10 minPath B
Path C · Production Kubernetes (OCI Helm)Multi-replica HA cluster with external PostgreSQL 16, S3/Azure, Ingress TLS, optional ScannerKubernetes 1.23+, Helm 3.8+, external PG 16 & S3~15 minPath C / Production Guide
Path D · Client Only (arkactl)Operators and CI runners managing an existing Arka server (Linux / macOS / Windows)Standalone arkactl archive above~2 minPath D

Path A · Local Tryout (Docker Compose) ​

Starts PostgreSQL 16, RustFS (S3-compatible object storage), a bucket-init job, and Arka with the embedded React 19 Console bound strictly to loopback (127.0.0.1:18080) using docker-compose.quickstart.yml.

1. Fetch the Stack and Start Arka ​

Pick whichever workflow fits best:

Option 1: Download Only the Compose File (Fastest — No Git Clone Required) ​

Download docker-compose.quickstart.yml directly and start the published dual-architecture image:

bash
mkdir -p arka-quickstart && cd arka-quickstart

# 1. Download the standalone quickstart Compose file
curl -fsSLO https://raw.githubusercontent.com/ccsert/arka/v1.0.0/docker-compose.quickstart.yml

# 2. Start PostgreSQL 16 + RustFS + Arka (pin an explicit release version)
ARKA_IMAGE=ghcr.io/ccsert/arka:1.0.0 \
  docker compose -f docker-compose.quickstart.yml up -d

# 3. Wait until Arka reports healthy
curl -fsS --retry 30 --retry-all-errors --retry-delay 1 \
  http://127.0.0.1:18080/api/v1/health

Stop or clean up using standard Docker Compose commands:

bash
# Stop containers while preserving data volumes
docker compose -f docker-compose.quickstart.yml down

# Permanently delete containers, network, and all volumes
docker compose -f docker-compose.quickstart.yml down -v

Option 2: Clone the Repo to Use scripts/quickstart.sh (Auto-Verify or Local Source Build) ​

If you want the helper script scripts/quickstart.sh (which supports --verify smoke checks, --build local builds, and --stop/--clean shortcuts), clone ccsert/arka first:

bash
# 1. Clone the repository
git clone --depth 1 --branch v1.0.0 https://github.com/ccsert/arka.git
cd arka

# 2a. Start with the published GHCR image and run the smoke check
ARKA_IMAGE=ghcr.io/ccsert/arka:1.0.0 ./scripts/quickstart.sh --verify

# 2b. Or build locally from the checked-out source (no GHCR pull required)
./scripts/quickstart.sh --build --verify

--verify waits for GET /api/v1/health, creates the quickstart-raw Hosted repository, uploads hello.txt, downloads it back, and verifies byte-for-byte equality. Stop, restart, or clean up later:

bash
./scripts/quickstart.sh --stop                                 # Keep PostgreSQL, RustFS, and local keys
ARKA_IMAGE=ghcr.io/ccsert/arka:1.0.0 ./scripts/quickstart.sh  # Resume with persisted data
./scripts/quickstart.sh --clean                                # Permanently delete containers & volumes

2. Sign In to the Console ​

Once healthy, open:

  • Console: http://127.0.0.1:18080/login
  • Anonymous Public Portal: http://127.0.0.1:18080/public (empty until a repository enables anonymousRead)
  • Initial Admin: admin / arka-admin-dev (override before first boot with ARKA_BOOTSTRAP_ADMIN_USER and ARKA_BOOTSTRAP_ADMIN_PASSWORD)

3. Create Your First Repository and Push / Pull a Package ​

You can create a repository in Console → Repositories → New Repository, or directly via the API:

bash
BASE="http://127.0.0.1:18080"
AUTH="admin:arka-admin-dev"

# 1. Create a Raw Hosted repository
curl -fsS -u "$AUTH" -H 'Content-Type: application/json' \
  -d '{"name":"my-raw","format":"raw","type":"hosted"}' \
  "$BASE/api/v1/repositories"

# 2. Upload a file to the data plane (/repository/<name>/<path>)
printf 'hello from Arka\n' > hello.txt
curl -fsS -u "$AUTH" -T ./hello.txt "$BASE/repository/my-raw/demo/hello.txt"

# 3. Download it back and verify identical bytes
curl -fsS -u "$AUTH" "$BASE/repository/my-raw/demo/hello.txt" -o fetched.txt
cmp hello.txt fetched.txt && echo "Upload & download verified!"

Next step for CI/CD: Never embed your admin password in CI pipelines. Create a least-privilege service account and scoped API token under Console → Access (/access), grant write on Hosted repositories for publishers and read for consumers, and use the arkat_* token as the HTTP Basic password.

Quickstart customization variables (both options):

  • ARKA_PORT: loopback port (default 18080).
  • ARKA_QUICKSTART_PROJECT: Docker Compose project name (default arka-quickstart). Use distinct names and ports for parallel instances.
  • ARKA_IMAGE: target server image tag or @sha256:... digest.

Why Quickstart doesn't ask for ARKA_CREDENTIAL_KEY: docker-compose.quickstart.yml sets ARKA_ENV=development, which auto-generates a 32-byte key at /data/config/arka/credential.key and a signing key at /data/signing-key inside the identity Docker volume. Production runs require an explicit ARKA_CREDENTIAL_KEY—see Path B below.


Path B · Single Host / VM (Binary + PostgreSQL 16) ​

Use this path to run Arka directly as a systemd service or standalone binary on Linux or macOS without Docker.

1. Download and Verify the Release Archive ​

Download directly from the Downloads Table above or the GitHub Releases (v1.0.0) page, or fetch and verify via CLI:

Each server archive contains bin/arka, bin/arkactl, console/dist/, and BUILDINFO.

bash
VERSION="v1.0.0"
OS="linux"      # linux or darwin
ARCH="amd64"    # amd64 or arm64
REPO="https://github.com/ccsert/arka/releases/download/${VERSION}"

mkdir -p arka-install && cd arka-install
curl -fsSLO "${REPO}/arka-${VERSION}-${OS}-${ARCH}.tar.gz"
curl -fsSLO "${REPO}/SHA256SUMS.txt"

# Verify SHA-256 checksum (use `shasum -a 256 -c --ignore-missing SHA256SUMS.txt` on macOS)
sha256sum -c --ignore-missing SHA256SUMS.txt

tar xzf "arka-${VERSION}-${OS}-${ARCH}.tar.gz"
./bin/arka --version

For full Cosign keyless signature verification (online or completely air-gapped), see Release Verification & Offline Deployment.

2. Prepare PostgreSQL 16 ​

Arka requires PostgreSQL 16 (single shared database; sequential SQL migrations are embedded in the arka binary and serialized with pg_advisory_lock).

sql
CREATE ROLE arka WITH LOGIN PASSWORD 'REPLACE_WITH_STRONG_DB_PASSWORD';
CREATE DATABASE arka OWNER arka;

Connection pooler warning: Arka uses session-level LISTEN/NOTIFY and pg_advisory_lock. Point ARKA_DATABASE_URL directly at PostgreSQL (or a session-mode pooler). Do not put PgBouncer in transaction pooling mode in front of arka.

3. Configure Environment Variables (Required vs. Optional) ​

Create a private environment file (for example /etc/arka/arka.env with chmod 600):

bash
# Generate the two independent secrets once and store them in your secrets manager
openssl rand -hex 32   # -> ARKA_CREDENTIAL_KEY (32 bytes = 64 hex chars or standard Base64)
openssl rand -hex 32   # -> ARKA_AUTH_SIGNING_KEY (32+ bytes high-entropy HMAC secret)
VariableRequired?DefaultHow to Set & Common Pitfalls
ARKA_DATABASE_URLYespostgres://arka:arka-dev-password@localhost:5439/arka?sslmode=disableProduction PostgreSQL 16 DSN, e.g. postgres://arka:<url-encoded-pass>@pg.example.com:5432/arka?sslmode=verify-full. URL-encode special characters in the password!
ARKA_CREDENTIAL_KEYYes (prod)(none — fails closed)Must be set for both arka migrate and arka serve unless ARKA_ENV=development. Exactly 32 bytes as 64 hex chars (openssl rand -hex 32) or standard Base64. Back up separately from the database!
ARKA_AUTH_SIGNING_KEYYes (prod)arka-dev-signing-key-...HMAC key for browser sessions (arka1.*) and OCI bearer tokens. Generate with openssl rand -hex 32. Must be identical across all replicas.
ARKA_BOOTSTRAP_ADMIN_PASSWORDYes (1st boot)arka-admin-devPassword for initial ARKA_BOOTSTRAP_ADMIN_USER (default admin). Used only when bootstrapping the first admin; rotate later inside Arka.
ARKA_BASE_URLYes (prod)http://localhost:8080External URL clients use, e.g. https://registry.example.com (no trailing slash). Drives OCI Bearer realm, upload Location, and package index URLs.
ARKA_CONSOLE_DIST_DIRRecommended(empty — API only)Set to /opt/arka/console/dist (from the tarball) so the web Console is served at /. The Docker image sets /app/console/dist automatically.
ARKA_LISTEN_ADDROptional:8080HTTP bind address (e.g. 127.0.0.1:8080 behind Nginx/Caddy/Traefik).
ARKA_STORAGE_DRIVEROptionalfsfs (single-host local disk), s3 (AWS S3, RustFS, MinIO), or azure_blob.
ARKA_STORAGE_FS_ROOTIf fs.arka-data/blobsWritable directory owned by the arka OS user (e.g. /var/lib/arka/blobs).
ARKA_S3_ENDPOINTIf s3(empty)S3 API endpoint, e.g. https://s3.internal.example.com.
ARKA_S3_BUCKETIf s3arka-blobsTarget bucket name. Pre-create in production and set ARKA_S3_AUTO_CREATE_BUCKET=false.
ARKA_S3_REGIONIf s3us-east-1S3 region name.
ARKA_S3_PATH_STYLEIf s3trueKeep true for RustFS / MinIO / Ceph; set false for AWS S3 virtual-hosted URLs.
ARKA_S3_AUTH_MODEIf s3staticstatic (uses ARKA_S3_ACCESS_KEY + ARKA_S3_SECRET_KEY) or aws_default (IAM role/IRSA — do not pass static keys).
ARKA_TRUSTED_PROXIESBehind proxy(empty)Comma-separated direct reverse-proxy IPs/CIDRs (e.g. 127.0.0.1,10.0.0.0/8) so real client IPs and X-Accel-Redirect work safely.
ARKA_METRICS_LISTEN_ADDROptional(empty = main port)Set e.g. 127.0.0.1:9090 to expose Prometheus /metrics on a dedicated internal port.
ARKA_TLS_CA_CERTIFICATESPrivate CA(empty)Path to PEM CA bundle appended to system roots for outbound HTTPS proxy upstreams.

4. Migrate, Start, and Verify Health ​

bash
set -a
source /etc/arka/arka.env
set +a

# 1. Apply PostgreSQL schema migrations explicitly (idempotent & advisory-locked)
./bin/arka migrate

# 2. Start the server
./bin/arka serve

In a second terminal, verify liveness and live dependency readiness:

bash
# Process health (returns version, status)
curl -fsS http://127.0.0.1:8080/api/v1/health

# Live readiness (verifies PostgreSQL + default BlobStore connectivity)
curl -fsS http://127.0.0.1:8080/api/v1/ready

Note on probe paths: The Arka server exposes /api/v1/health and /api/v1/ready. The /healthz and /readyz paths belong to the optional arka-scanner sidecar on port :8091.


Path C · Production Kubernetes (OCI Helm Chart) ​

For multi-replica HA clusters, install directly from the signed OCI Helm Chart or air-gapped .tgz package:

Minimal install preview (prepare values-prod.yaml and the Secret containing ARKA_CREDENTIAL_KEY first):

bash
helm upgrade --install arka oci://ghcr.io/ccsert/charts/arka \
  --version 1.0.0 \
  --namespace arka --create-namespace \
  -f values-prod.yaml

Follow the complete step-by-step Production Kubernetes & Storage Deployment Guide for a minimal copy-paste values-prod.yaml, required Secret & ARKA_CREDENTIAL_KEY wiring, Ingress large-upload tuning, and scanner.dbUpdater setup.


Path D · Client-Only Install (arkactl) ​

Install the lightweight standalone arkactl binary (~3 MB) on developer laptops or CI runners—no server files or Console bundle needed.

Direct downloads (v1.0.0):

Linux / macOS ​

bash
VERSION="v1.0.0"
OS="darwin"     # linux or darwin
ARCH="arm64"    # amd64 or arm64
REPO="https://github.com/ccsert/arka/releases/download/${VERSION}"

curl -fsSLO "${REPO}/arkactl-${VERSION}-${OS}-${ARCH}.tar.gz"
curl -fsSLO "${REPO}/SHA256SUMS.txt"
shasum -a 256 -c --ignore-missing SHA256SUMS.txt   # Linux: sha256sum -c --ignore-missing SHA256SUMS.txt

tar xzf "arkactl-${VERSION}-${OS}-${ARCH}.tar.gz"
sudo install -m 0755 bin/arkactl /usr/local/bin/arkactl
arkactl version --json

Windows (PowerShell, amd64) ​

powershell
$Version = "v1.0.0"
$Repo = "https://github.com/ccsert/arka/releases/download/$Version"

Invoke-WebRequest "$Repo/arkactl-$Version-windows-amd64.zip" -OutFile "arkactl-$Version-windows-amd64.zip"
Invoke-WebRequest "$Repo/SHA256SUMS.txt" -OutFile "SHA256SUMS.txt"

# Verify SHA-256 against SHA256SUMS.txt
$expected = (Select-String -Path SHA256SUMS.txt -Pattern "arkactl-$Version-windows-amd64\.zip$").Line.Split()[0]
$actual = (Get-FileHash "arkactl-$Version-windows-amd64.zip" -Algorithm SHA256).Hash.ToLower()
if ($actual -ne $expected) { throw "SHA-256 mismatch!" }

Expand-Archive "arkactl-$Version-windows-amd64.zip" -DestinationPath "$HOME\bin\arka" -Force
& "$HOME\bin\arka\arkactl.exe" version --json

Login & Daily Command Cheatsheet ​

bash
# Authenticate and save credentials to ~/.config/arka/config.json under profile "prod"
arkactl --url https://registry.example.com --profile prod login \
  --username admin --password "$ARKA_ADMIN_PASSWORD"

# Verify session and cluster readiness
arkactl --profile prod auth whoami --json
arkactl --profile prod ready --json

# Create a repository, upload & download an artifact
arkactl --profile prod repo create --name my-raw --format raw --type hosted --json
arkactl --profile prod asset upload my-raw releases/app.bin ./app.bin
arkactl --profile prod asset download my-raw releases/app.bin ./downloaded.bin

# Inspect supported formats or license compliance
arkactl --profile prod formats list
arkactl --profile prod security licenses summary "$REPO_ID" --json

For CI pipelines, pass ARKA_URL and ARKA_TOKEN (using an arkat_* service token) instead of saving a profile, and append --json. Full CLI reference: Operations & arkactl Reference.


Verify Core Package Managers ​

If you cloned the repository via Path A · Option 2, run scripts/cli-matrix-core.sh from the repository root to verify Maven, npm, PyPI, and OCI end-to-end against a test instance:

bash
./scripts/cli-matrix-core.sh --base-url http://127.0.0.1:18080
# Or run clients inside Docker when local Maven/pip/crane are not installed:
./scripts/cli-matrix-core.sh --docker-clients --base-url http://127.0.0.1:18080 > results.tsv

For production configuration of all 26 package formats (Maven, npm, PyPI, Docker/OCI, Go, Cargo, Helm, APT, RPM, NuGet, Hugging Face, and more), see the 26 Format Guides.

Next Steps ​

Released under the Apache 2.0 License.