Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

porter

БесплатноБез исполняемых скриптовНе проверен

Porter is a platform as a service that gives a Heroku-style deploy experience on your own AWS, GCP or Azure account, running apps on a managed Kubernetes…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Porter — PaaS on Your Own Cloud

Overview

Porter runs applications in your own AWS, GCP or Azure account while managing the Kubernetes cluster underneath. You connect a cloud account, create a cluster in the dashboard (dashboard.porter.run), then deploy apps from a GitHub repository or a container registry. Apps are made of services of three types: web (HTTP), worker (background) and job (cron or on demand). Configuration as code lives in a porter.yaml (schema version: v2) applied with porter apply. Docs: https://docs.porter.run.

Instructions

Setup and CLI basics

brew install porter-dev/porter/porter     # macOS (Homebrew)
porter version
porter auth login                          # opens the browser, sets default project and cluster
porter config                              # show current project and cluster
porter projects list
porter clusters list --json                # the table hides cluster IDs
porter config set-project 12345
porter config set-cluster 67890

Global flags --project, --cluster, --token and the variables PORTER_PROJECT, PORTER_CLUSTER, PORTER_TOKEN, PORTER_HOST, PORTER_APP_NAME override the config file (flags win over variables). Create the cloud account link and the cluster in the dashboard first; the CLI can also manage them with porter cloud-accounts and porter clusters.

porter.yaml

services is a list. Each service needs name, type, run, cpuCores and ramMegabytes; web also needs port. Use either build or image, never both. The app name is name (max 31 chars, lowercase, digits, -) or PORTER_APP_NAME.

version: v2
name: billing-api
build:
  method: docker            # docker | pack
  context: .
  dockerfile: ./Dockerfile  # Porter recommends a Dockerfile over buildpacks
env:
  NODE_ENV: production
  PORT: "8080"              # values must be strings
envGroups:
  - billing-secrets         # project-wide group, must already exist
predeploy:
  run: npx prisma migrate deploy
services:
  - name: api
    type: web
    run: node dist/server.js
    port: 8080
    cpuCores: 0.5
    ramMegabytes: 512
    domains:
      - name: api.billing-demo.dev
    healthCheck:
      enabled: true
      httpPath: /health
    autoscaling:
      enabled: true         # while enabled, `instances` is ignored
      minInstances: 2
      maxInstances: 10
      cpuThresholdPercent: 60
      memoryThresholdPercent: 70
  - name: queue-worker
    type: worker
    run: node dist/worker.js
    cpuCores: 1
    ramMegabytes: 1024
    instances: 2
  - name: daily-report
    type: job
    run: node dist/cron/daily-report.js
    cpuCores: 0.25
    ramMegabytes: 256
    cron: "0 8 * * *"       # default is every 5 minutes if omitted
    timeoutSeconds: 300
autoRollback:
  enabled: true

Other top-level fields: image: {repository, tag} for a pre-built image, initialDeploy (runs once on the first deploy of a preview environment, for seeding), efsStorage (AWS). Web services default to the cluster's public load balancer; loadBalancers: [private_lb] or private: true (no load balancer, cluster-internal) change that. Secrets belong in environment groups, not in porter.yaml.

Deploy and operate from the CLI

porter apply -f porter.yaml --validate     # YAML syntax only
porter apply -f porter.yaml --dry-run      # server-side validation, nothing applied
porter apply -f porter.yaml --wait         # build, deploy, wait for rollout
porter apply -f porter.yaml --no-build --tag v1.4.2   # redeploy an existing image

porter app list
porter app yaml billing-api > porter.yaml  # export the live config
porter app logs billing-api --service api  # stream; add --since 1h, --search "error", --limit 500
porter app run billing-api -- npm run seed # one-off command in a copy of the app
porter app run billing-api -e -- bash      # shell in an existing replica
porter app run billing-api --job daily-report --wait   # trigger a job service
porter app update billing-api --tag v1.4.2 --wait     # config/tag only, no build
porter app rollback billing-api            # back to the last successful revision

Environment groups and secrets

porter env list
porter env create --name billing-secrets --variables LOG_LEVEL=info --secrets STRIPE_API_KEY="$STRIPE_API_KEY"
porter env set billing-secrets -v LOG_LEVEL=debug -s SENDGRID_API_KEY="$SENDGRID_API_KEY"
porter env pull billing-secrets -f .env.local
porter env pull --app billing-api --merged

Updating an environment group redeploys every app attached to it. Secrets are not readable after creation.

Datastores and multi-app files

Managed Postgres and Redis datastores are provisioned from Add-ons in the dashboard, on AWS only, in a separate VPC peered to the cluster. Porter creates an environment group named after the datastore with the connection variables; attach it with envGroups. For a local tunnel: porter datastore connect billing-db --port 5433, then `psq

Полный SKILL.md на GitHub

Установить porter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл porter?

Porter is a platform as a service that gives a Heroku-style deploy experience on your own AWS, GCP or Azure account, running apps on a managed Kubernetes cluster it provisions for you. Use when someone asks to deploy an app on Porter, write a porter.yaml, run `porter apply`, tail logs, run a one-off command, set environment groups, add Postgres or Redis, set up preview environments, or deploy from CI.

Как установить скилл porter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл porter запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить porter с