Reputation: 13
I am trying to run a NestJS app inside a Nitro Enclave. But whenever i started the enclave using command
nitro-cli run-enclave --cpu-count 2 --memory 4132 --enclave-cid 16 --eif-path crons_enclave.eif --debug-mode
it showed that enclave has started successfully but when i tried to check if enclave is working fine using command
nitro-cli describe-enclaves
it returned [] meaning there are no enclaves running. After seaching for hours i found the --attach-console flag and after running the run-enclave command with --attach-console command i found the issue.
Basically the entry point command in my dockerfile is
CMD ["node", "dist/apps/crons/main"]
first the error in the enclaves logs was
execvpe: node: No such file or directory child exited with error
but after i replaced the node command with the complete path to the node executable like this
CMD ["/usr/local/bin/node", "dist/apps/crons/main"]
and now its not giving the error about node but now its unable to resolve the path to my main file and giving error
Error: Cannot find module 'dist/apps/crons/main'
Can any one help me understand that how the path resolution works inside nitro enclave and how do i solve this problem?
Upvotes: 1
Views: 23