Faster, Safer, Easier TEE Development.
DevKit is a tooling package built to accelerate development, improve code quality, and ensure consistency across Private Compute Infrastructure Toolkit projects utilizing Trusted Execution Environments (TEE). faster, safer, and easier.
- Sudo-less Docker
- Docker Buildx plugin
- Python 3 installed on your Linux machine.
- Bazelisk to be able to build code outside of DevKit containers
[!CAUTION] Take care to back up your files if you have executed the bootstrap command before. Files that have been generated from previous bootstraps will be overwritten.
-
Add DevKit as a submodule to your new or existing git repository. Replace
release-<version>with the version you require from the available branch releases.git submodule add --name=devkit --branch=release-<version> https://github.com/private-compute-infra-toolkit/devkit.git .devkit
-
Add a linux symlink to the DevKit entrypoint scripts.
ln -s .devkit/devkit devkit echo ".devkit" >> .bazelignore
-
Bootstrap the project.
For the full list of supported templates and toolchains, navigate here.
devkit/bootstrap --template cpp --args toolchain=llvm_custom_sysroot
-
Build and spin up containerized build environment to start developing. To start other variants, use the corresponding
devkit/build-<variant>script. Supported variants includedebianandrockylinux.devkit/build bazel build //...
Begin development by spinning up a container-based local development environment from the root of your project.
devkit/dev devkit/vscode_ide --server # Spins up VS Code IDE in a local server at localhost:8080