atproto pds in zig pds.zat.dev
pds atproto
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364mod bench# run the local test suitetest: python3 tools/test-smoke-runner.py zig build test# run the local endpoint smoke testsmoke: tools/smoke.sh# run the experimental permissioned-data endpoint smoke testsmoke-permissioned: tools/smoke-permissioned.sh# run both HTTP suites concurrently after one focused buildsmoke-all: tools/smoke-all.sh# mint an invite code with the configured admin tokeninvite pds="https://pds.zat.dev" use_count="1" for_account="": #!/usr/bin/env bash set -euo pipefail : "${ZDS_ADMIN_TOKEN:?set ZDS_ADMIN_TOKEN to the configured PDS admin token}" if [[ -n "{{for_account}}" ]]; then body="$(jq -nc --argjson useCount "{{use_count}}" --arg forAccount "{{for_account}}" '{useCount:$useCount,forAccount:$forAccount}')" else body="$(jq -nc --argjson useCount "{{use_count}}" '{useCount:$useCount}')" fi curl -fsS "{{pds}}/xrpc/com.atproto.server.createInviteCode" \ -H "authorization: Bearer $ZDS_ADMIN_TOKEN" \ -H 'content-type: application/json' \ --data "$body" | jq -r '.code'# repair an existing account's PLC rotation set from the local databaseplc-repair did: zig build plc-repair -- {{did}}# build the container image locallydocker-build tag="latest" platform="linux/amd64" arch="amd64": DOCKER_BUILDKIT=1 docker build --platform {{platform}} --build-arg TARGETARCH={{arch}} --build-arg ZDS_VERSION={{tag}} -t zds:{{tag}} .# publish the container image to atcr.iodocker-publish tag="latest" platform="linux/amd64" arch="amd64": DOCKER_BUILDKIT=1 docker build --platform {{platform}} --build-arg TARGETARCH={{arch}} --build-arg ZDS_VERSION={{tag}} -t zds:{{tag}} . docker tag zds:{{tag}} atcr.io/zat.dev/zds:{{tag}} docker push atcr.io/zat.dev/zds:{{tag}}# publish latest plus the current git commit tagdocker-publish-current: just docker-publish latest just docker-publish $(git rev-parse --short=12 HEAD)# publish latest, a semver tag, and the current git commit tagdocker-publish-release version: just docker-publish {{version}} just docker-publish latest just docker-publish $(git rev-parse --short=12 HEAD)# verify and cache per-slot drawings before building or deployingdrawings config="config/drawings.json": zig build drawings -- "{{config}}"