Run InternetEndpoint.makeInitialSessionKeyIfMissing() in a Kubernetes job, instead of doing it in any server process.
Converted fastify.getActiveEndpoint() to fastify.activeEndpoint.
Since we need to export a new script from the Docker image, which isn't an HTTP server in this case, I moved away from the Docker Entrypoint-based approach, to use that uses npm exec with NPM bin/ scripts.
Fixes #16.
High-level changes
InternetEndpoint.makeInitialSessionKeyIfMissing()
in a Kubernetes job, instead of doing it in any server process.fastify.getActiveEndpoint()
tofastify.activeEndpoint
.npm exec
with NPMbin/
scripts.