Do not embed the WASM-compiled policies in the binary

This commit is contained in:
Quentin Gliech
2022-11-18 19:28:16 +01:00
parent 9d97e4a0e8
commit 44d397b54c
20 changed files with 124 additions and 92 deletions

View File

@@ -11,16 +11,23 @@ See the [Documentation](https://matrix-org.github.io/matrix-authentication-servi
- [Install Node.js and npm](https://nodejs.org/)
- [Install Open Policy Agent](https://www.openpolicyagent.org/docs/latest/#1-download-opa)
- Clone this repository
- Generate the frontend:
- Generate the static-files:
```sh
cd crates/static-files
npm ci
npm run build
cd ../..
```
- Build the frontend
```sh
cd frontend
npm ci
npm run build
cd ../..
```
- Build the Open Policy Agent policies
```sh
cd crates/policy/policies
cd policies
make
# OR, if you don't have `opa` installed and want to build through the OPA docker image
make DOCKER=1