Closed dklimpel closed 1 year ago
The documentation and distribution is definitely lacking. Although it is already in my todo-list to make that better in the next few weeks, contributions on that front is definitely appreciated! Feel free to ask on #matrix-auth:matrix.org if something needs to be clarified.
At some point, we were embedding all the assets in the binary, which did not scale well.
For the record, for ~production, I'm currently relying on the nightly docker images. The Docker image is a good source to know what's needed to run it, outside of the binary itself:
/usr/local/share/mas-cli/assets/
has the built frontend assets/usr/local/share/mas-cli/manifest.json
is the Vite manifest generated for the frontend/usr/local/share/mas-cli/templates/
has the templates/
folder copied as-is/usr/local/share/mas-cli/policy.wasm
has the OPA policy compiled to WASMI'm definitely down to publish full archives with both the binary and all the assets.
About publishing versions, I'm not sure when the service will be stable enough to cut a clear version with proper changelogs between versions.
A few questions we would need to answer:
glibc
({aarch64,x86_64}-unknown-linux-gnu
) based binaries, or do we build fully-static binaries based on musl
({aarch64,x86_64}-unknown-linux-musl
)? Note that in the Docker image we're using musl
binaries.cargo-deb
and cargo-generate-rpm
Heads up that a first v0.1.0 release has been cut, with pre-built binaries available: https://github.com/matrix-org/matrix-authentication-service/releases/tag/v0.1.0
I'm gonna document this next week, so I'll keep this issue open for now.
I think the documentation is good enough now, and we provide pre-built binaries on releases. See #1944 as well
https://matrix-org.github.io/matrix-authentication-service/setup/installation.html
I have a few comments that I as an server admin notice and can possibly be improved to make it easier for the community to use the module in the future.
I will probably update the ticket in the future.
Differences in documentation
vs.
The official documentation has no infromation about: