Something went wrong. Try again.
An Atmosphere in a box
Something went wrong. Try again.
README.md
# Migration tests in Compose
One vivarium with two extra built-in PDSes, `old` and `new`, for testing a
service that moves accounts between PDSes, with everything in containers.
```sh
docker compose up --build --exit-code-from client
```
- The extra PDSes share the box's port and are chosen by the `Host` header, so
giving the `vivarium` service the network aliases `old` and `new` is all it
takes for `http://old:2580` and `http://new:2580` to be two PDSes.
- `--public-url http://vivarium:2580` is what the box advertises (DID documents,
PLC, relay); `--app-host` names your own services so the box can call them
back (their `did:web`, `atproto-proxy`, OAuth client metadata) while sealed.
- Point your app's PLC directory, relay and identity lookups (Slingshot,
`resolveHandle`) at `http://vivarium:2580`.
`migrate.ts` (the `client` service) creates an account on `old`, posts, moves it
to `new` with `localhost.vivarium.migrateAccount`, and checks that the PLC and
the box's relay follow. Swap it for your own service and test runner.
On the host, without Compose: `vivarium --pds old --pds new` gives
`http://old.localhost:2580` and `http://new.localhost:2580`.