Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enclave build improvement ideas #50

Open
roshanrags opened this issue Jan 3, 2025 · 0 comments
Open

Enclave build improvement ideas #50

roshanrags opened this issue Jan 3, 2025 · 0 comments

Comments

@roshanrags
Copy link
Member

Enclave building is a bit monolithic today which means intermediate steps can't effectively be cached. A clean rebuild using the Docker pipeline takes ~1.5 min.

There are three main culprits:

  1. app
  2. setup.sh and supervisord.conf
  3. buildEnv (probably biggest)

Some improvement ideas

  • Use /bin directly for binaries instead of /app. This means the binaries don't have to be copied to /app and can directly be used as inputs to buildEnv without needing to go in app.
  • Break up setup.sh and supervisord.conf so each binary can define its own part which can be cached
  • Break up buildEnv into multiple logical groupings which eventually combine into one. Each part can now be made into a derivation and cached separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@roshanrags and others