Skip to content
rakyllPublic

About

A desktop studio application for AX

Resources

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

AX Studio

A desktop app for AX: design tasks, watch them run, and create local AX clusters. Built with Electron, React and TypeScript for macOS, Windows and Linux.

Activity

  • Activity: a sortable task table with running tasks on top, and the atespace's workspaces. Resume, suspend or delete tasks, inspect conditions, follow logs and delete workspaces.
  • Map: a graph of sources, workspaces and tasks.
  • Deploy: build tasks with a form or raw YAML, then create them.
  • Terminal: sessions into running tasks over ax ssh, in tabs that stay connected while you use the rest of the app.
  • Clusters: create, inspect and delete local AX clusters on kind.
Map Map Deploy Deploy
Terminal Terminal Clusters Clusters
Task logs Task logs

The app calls the ax CLI and kubectl. It passes --context on every call, so it never changes your global context.

Develop

npm install
npm run dev         # hot-reloading app
npm run typecheck

To refresh a screenshot, build (npm run build) and run:

npx electron . --section=clusters --cluster=ax-dev --delay=7000 --screenshot=docs/screenshots/clusters.png

Other flags: --context, --atespace, --task, --logs=expanded, --terminal=<command>.

Package

npm run dist:mac    # .dmg and .zip
npm run dist:win    # NSIS installer and .zip
npm run dist:linux  # AppImage, .deb, .tar.gz

Build each OS on that OS. macOS builds are unsigned; set mac.identity in electron-builder.yml to sign. To regenerate the icon on macOS:

swift scripts/make-icon.swift ~/ax/assets/axel.svg build-resources/icon.icns

Clusters

Note

Cluster creation is a prototype. Ideally, once AX Studio is installed on a laptop, it won't need any external dependencies.

Creating a cluster runs the AX repo's hack/setup-e2e-kind.sh, which needs make, go and docker or podman. The app then merges the kind-<name> context into your kubeconfig and saves a .ax-studio.bak backup. Reinstalling AX deletes existing tasks and workspaces.

With podman and no docker, the app uses a docker shim (docker-shim.sh).

Platform notes

  • macOS/Linux: the app reads PATH from your login shell.
  • Windows: cluster setup needs Git for Windows (bash), make and go.

About

A desktop studio application for AX

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages