Trusted Services is integrated into the OP-TEE reference build system. This can be used to the Trusted Services functionality too. The OP-TEE testing environment can be reused after a few minor modifications.
The Dockerfile provided by OP-TEE is a good starting point:
The base of the following file is the Ubuntu 22.04 Dockerfile copied from [[ https://optee.readthedocs.io/en/latest/building/prerequisites.html | OP-TEE prerequisites ]] (Revision eda1e0fd. Last updated on 2023-10-18 12:28).