- Docker
- Node 17.2 or later
- Run
corepack enable
. This enables corepack in Node to make thepnpm
package manager available. - Run
pnpm i
to install dependencies for the whole repository. - Copy
.env.example
to e.g..env.local
and symlink to.env.current
- Windows:
mklink .env.local .env.current
- Linux:
ln -s .env.current .env.local
- Windows:
- Configure your current envfile appropriately (AWS account ID etc.)
- Go to the
packages/node/aws
directory. - Run
pnpm cdk -- deploy --all
- Go to the
packages/node/compositor
directory. - Run
pnpm build:image
to build the Docker image. - Run
pnpm start:image
to start the Docker image. At the moment, this will automatically record a 60-second video clip.
aws ecr get-login-password --profile sandbox --region eu-west-1 | docker login --username AWS --password-stdin <account-id>.dkr.ecr.eu-west-1.amazonaws.com
docker tag midspace/compositor:latest <account-id>.dkr.ecr.eu-west-1.amazonaws.com/midspace/compositor:latest
docker push <account-id>.dkr.ecr.eu-west-1.amazonaws.com/midspace/compositor:latest
TODO
pnpm dlx npm-check-updates