Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unikraft/unikraft
A next-generation cloud native kernel designed to unlock best-in-class performance, security primitives and efficiency savings.
https://github.com/unikraft/unikraft
application cloud cloud-native hacktoberfest kernel library microservice operating-system os osdev performance qemu security unikernel unikernels unikraft virtualization
Last synced: 4 days ago
JSON representation
A next-generation cloud native kernel designed to unlock best-in-class performance, security primitives and efficiency savings.
- Host: GitHub
- URL: https://github.com/unikraft/unikraft
- Owner: unikraft
- License: other
- Created: 2019-04-12T14:17:59.000Z (over 5 years ago)
- Default Branch: staging
- Last Pushed: 2024-04-17T17:57:13.000Z (7 months ago)
- Last Synced: 2024-04-17T21:16:53.648Z (7 months ago)
- Topics: application, cloud, cloud-native, hacktoberfest, kernel, library, microservice, operating-system, os, osdev, performance, qemu, security, unikernel, unikernels, unikraft, virtualization
- Language: C
- Homepage: http://unikraft.org
- Size: 7.23 MB
- Stars: 2,273
- Watchers: 38
- Forks: 1,549
- Open Issues: 273
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: COPYING.md
- Codeowners: .github/CODEOWNERS
- Support: support/build/Makefile.build
Awesome Lists containing this project
- awesome-repositories - unikraft/unikraft - A next-generation cloud native kernel designed to unlock best-in-class performance, security primitives and efficiency savings. (C)
- StarryDivineSky - unikraft/unikraft - V),在各种硬件平台上提供了部署的灵活性。Unikraft 为多种编程语言和硬件架构提供广泛的支持,使开发人员能够灵活地选择最适合您需求的工具和平台。Unikraft专为云和边缘计算环境而设计,可跨分布式计算基础设施无缝部署应用程序。通过有选择地仅包含必要的组件,Unikraft 减少了攻击面,增强了部署场景中的安全性。Unikraft还包括许多其他现代安全功能。Unikraft直观的工具链和用户友好的界面简化了开发过程,使开发人员能够专注于构建创新的解决方案。Unikraft 优化了资源利用率,从而减少了占用空间(意味着更高的服务器饱和度)并提高了资源受限环境中的效率。Unikraft 是一个开源项目,由 100 多名开发人员组成的充满活力的社区推动,促进了工业界和学术界的合作和创新。 (C/C++ 程序设计 / 网络服务_其他)
README
[![](https://img.shields.io/badge/version-v0.17.0%20(Calypso)-%23EC591A)][unikraft-latest]
[![](https://img.shields.io/static/v1?label=license&message=BSD-3&color=%23385177)][unikraft-license]
[![](https://img.shields.io/discord/762976922531528725.svg?label=discord&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)][unikraft-discord]
[![](https://img.shields.io/github/contributors/unikraft/unikraft)](https://github.com/unikraft/unikraft/graphs/contributors)
[![](https://app.codacy.com/project/badge/Grade/454f62251d96413fac8024b28df2ce5b)](https://app.codacy.com/gh/unikraft/unikraft/dashboard)The fast, secure and open-source
Unikernel Development Kit
Unikraft powers the next-generation of cloud native, containerless applications by enabling you to radically customize and build custom OS/kernels; unlocking best-in-class performance, security primitives and efficiency savings.
Homepage
·
Documentation
·
Report Bug
·
Feature Request
·
Join Our Discord
·
X.com
## Features
- **Instantaneous Cold-boots** ⚡
- While Linux-based systems might take tens of seconds to boot, Unikraft will be up in milliseconds.- **Modular Design** 🧩
- Unikraft boasts a modular design approach, allowing developers to include only necessary components, resulting in leaner and more efficient operating system configurations.- **Optimized for Performance** 🚀
- Built for performance, Unikraft minimizes overheads and leverages platform-specific optimizations, ensuring applications achieve peak performance levels.- **Flexible Architecture Support** 💻
- With support for multiple hardware architectures including x86, ARM, (and soon [RISC-V](#)), Unikraft offers flexibility in deployment across diverse hardware platforms.- **Broad Language and Application Support** 📚
- Unikraft offers extensive support for multiple programming languages and hardware architectures, providing developers with the flexibility to choose the tools and platforms that best suit your needs.
- **Cloud and Edge Compatibility** ☁️
- Designed for cloud and edge computing environments, Unikraft enables seamless deployment of applications across distributed computing infrastructures.- **Reduced Attack Surface** 🛡️
- By selectively including only necessary components, Unikraft reduces the attack surface, enhancing security in deployment scenarios. Unikraft also includes many [additional modern security features][unikraft-security-features].- **Developer Friendly** 🛠️
- Unikraft's intuitive toolchain and user-friendly interface simplify the development process, allowing developers to focus on building innovative solutions.- **Efficient Resource Utilization** 🪶
- Unikraft optimizes resource utilization, leading to smaller footprints (meaning higher server saturation) and improved efficiency in resource-constrained environments.- **Community-Driven Development** 👥
- Unikraft is an open-source project driven by a vibrant community of over 100 developers, fostering collaboration and innovation from industry and academia.## Quick Start
Install the companion command-line client [`kraft`][kraft]:
```shell
# Install on macOS, Linux, and Windows:
curl -sSfL https://get.kraftkit.sh | sh
```> See [additional installation instructions][unikraft-cli-install].
Run your first ultra-lightweight unikernel virtual machine:
```
kraft run unikraft.org/helloworld:latest
```View its status and manage multiple instances:
```
kraft ps --all
```View the community image catalog in your CLI for more apps:
```
kraft pkg ls --update --apps
```Or browse through one of the many [starter example projects][unikraft-catalog-examples].
## Why Unikraft?
Unikraft is a radical, yet Linux-compatible with effortless tooling, technology for running applications as highly optimized, lightweight and single-purpose virtual machines (known as unikernels).
In today's computing landscape, efficiency is paramount. Unikraft addresses this need with its modular design, enabling developers to create customized, lightweight operating systems tailored to specific application requirements. By trimming excess overhead and minimizing attack surfaces, Unikraft enhances security and performance in cloud and edge computing environments.
Unikraft's focus on optimization ensures that applications run smoothly, leveraging platform-specific optimizations to maximize efficiency. With support for various hardware architectures and programming languages, Unikraft offers flexibility without compromising performance. In a world where resources are precious, Unikraft provides a pragmatic solution for streamlined, high-performance computing.
## Getting Started
There are two ways to get started with Unikraft:
1. (**Recommended**) Using the companion command-line tool [`kraft`][kraft] (covered below).
2. Using the GNU Make-based system. For this, see our [advanced usage guide][unikraft-guides-advanced].
### Toolchain Installation
You can install the companion command-line client [`kraft`][kraft] by using the interactive installer:
```shell
# Install on macOS, Linux, and Windows:
curl -sSfL https://get.kraftkit.sh | sh
```#### macOS
```
brew install unikraft/cli/kraftkit
```#### Debian/Fedora/RHEL/Arch/Windows
Use the interactive installer or see [additional installation instructions][unikraft-cli-install].
### Codespaces
Try out one of the examples in GitHub Codespaces:
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][github-codespaces-catalog]
### Container Build Environment
You can use the pre-built development container environment which has all
dependencies necessary for building and trying out Unikraft in emulation mode.Attach your working directory on your host as a mount path volume mapped to
`/workspace`, e.g.:```shell
docker run --platform linux/x86_64 -it --rm -v $(pwd):/workspace --entrypoint bash kraftkit.sh/base:latest
```The above command will drop you into a container shell.
Type `exit` or Ctrl+D to quit.### Testing your Installation
Running unikernels with `kraft` is designed to be simple and familiar.
To test your installation of `kraft`, you can run the following:```
kraft run unikraft.org/helloworld:latest
```### Build your first unikernel
Building unikernels is also designed to be straightforward. Build your first
unikernel by simply placing a `Kraftfile` into your repo and pointing it to your
existing `Dockerfile`:```yaml
spec: v0.6runtime: base:latest
rootfs: ./Dockerfile
cmd: ["/path/to/my-server-app"]
```> Learn more about the [syntax of a `Kraftfile`][unikraft-kraftfile-syntax].
Once done, invoke in the context of your working directory:
```
kraft run .
```## Example Projects and Pre-built Images
You can find some common project examples below:
| | Example |
|-|:-|
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/c.svg) | [Simple "Hello, world!" application written in C](https://github.com/unikraft/catalog/tree/main/examples/helloworld-c) |
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/cpp.svg) | [Simple "Hello, world!" application written in C++](https://github.com/unikraft/catalog/tree/main/examples/helloworld-cpp) |
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/rust-white.svg#gh-dark-mode-only)![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/rust-black.svg#gh-light-mode-only) | [Simple "Hello, world!" application written in Rust built via `cargo`](https://github.com/unikraft/catalog/tree/main/examples/helloworld-rs) |
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/js.svg) | [Simple NodeJS 18 HTTP Web Server with `http`](https://github.com/unikraft/catalog/tree/main/examples/http-node18) |
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/go.svg) | [Simple Go 1.21 HTTP Web Server with `net/http`](https://github.com/unikraft/catalog/tree/main/examples/http-go1.21) |
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/python3.svg) | [Simple Flask 3.0 HTTP Web Server](https://github.com/unikraft/catalog/tree/main/examples/http-python3.10-flask3.0) |
| ![](https://raw.githubusercontent.com/unikraft/catalog/main/.github/icons/python3.svg) | [Simple Python 3.10 HTTP Web Server with `http.server.HTTPServer`](https://github.com/unikraft/catalog/tree/main/examples/http-python3.10) |Find [more examples and applications in our community catalog][unikraft-catalog]!
## Cloud Deployment
The creators of Unikraft have built [KraftCloud](https://kraft.cloud): a next generation cloud platform powered by technology intended to work in millisecond timescales.
| ✅ | Millisecond Scale-to-Zero | ✅ | Millisecond Autoscale | ✅ | Millisecond Cold Boots |
|:-|:-|:-|:-|:-|:-|
| ✅ | Higher Throughput | ✅ | Much Lower Cloud Bill | ✅ | HW-Level Isolation |
| ✅ | On-Prem or Cloud-Prem | ✅ | Works with Docker & K8s | ✅ | Terraform Integration |### [Sign-up for the beta ↗](https://console.kraft.cloud/signup)
## Contributing
Unikraft is open-source and licensed under `BSD-3-Clause` and the copyright of its
authors. If you would like to contribute:1. Read the [Developer Certificate of Origin Version 1.1](https://developercertificate.org/).
1. Sign-off commits as described in the [Developer Certificate of Origin Version 1.1](https://developercertificate.org/).
1. Grant copyright as detailed in the [license header](https://unikraft.org/docs/contributing/coding-conventions#license-header).This ensures that users, distributors, and other contributors can rely on all the software related to Unikraft being contributed under the terms of the License. No contributions will be accepted without following this process.
Afterwards, navigate to the [contributing guide](https://unikraft.org/docs/contributing/unikraft) to get started.
See also [Unikraft's coding conventions](https://unikraft.org/docs/contributing/coding-conventions).## Additional resources
* [Quick-start guide][unikraft-gettingstarted]
* [What is a unikernel?][unikraft-concepts]
* [Unikraft's inherent security benefits][unikraft-security]
* [Performance of Unikraft][unikraft-performance]
* [POSIX-compatibility with Unikraft][unikraft-posix-compatibility]
* [Energy efficiency with Unikraft][Unikraft-green]
* [Unikraft Community][unikraft-community]
* [Unikraft Documentation][unikraft-docs]## License
Unikraft Open-Source Project source code and its affiliated projects source code is licensed under a `BSD-3-Clause` if not otherwise stated.
For more information, please refer to [`COPYING.md`][unikraft-license].## Affiliation
Unikraft is a member of the [Linux Foundation](https://www.linuxfoundation.org/) and is a [Xen Project](https://xenproject.org/) Incubator Project.
The Unikraft name, logo and its mascot are trademark of [Unikraft GmbH](https://unikraft.io).
[unikraft-website]: https://unikraft.org
[unikraft-docs]: https://unikraft.org/docs
[unikraft-community]: https://unikraft.org/community
[unikraft-contributing]: https://unikraft.org/docs/contributing/
[unikraft-license]: https://github.com/unikraft/unikraft/blob/staging/COPYING.md
[unikraft-latest]: https://github.com/unikraft/unikraft/tree/RELEASE-0.17.0
[unikraft-gettingstarted]: http://unikraft.org/docs/getting-started
[unikraft-concepts]: https://unikraft.org/docs/concepts/
[unikraft-posix-compatibility]: https://unikraft.org/docs/features/posix-compatibility
[unikraft-performance]: https://unikraft.org/docs/features/performance/
[unikraft-security]: https://unikraft.org/docs/features/security/
[unikraft-security-features]: https://unikraft.org/docs/concepts/security#unikraft-security-features
[unikraft-green]: https://unikraft.org/docs/features/green/
[unikraft-discord]: https://bit.ly/UnikraftDiscord
[unikraft-cli-install]: https://unikraft.org/docs/cli/install
[unikraft-catalog]: https://github.com/unikraft/catalog
[unikraft-catalog-examples]: https://github.com/unikraft/catalog/tree/main/examples
[unikraft-guides-advanced]: https://unikraft.org/guides/internals
[unikraft-kraftfile-syntax]: https://unikraft.org/docs/cli/reference/kraftfile/latest
[github-codespaces-catalog]: https://codespaces.new/unikraft/catalog
[kraft]: https://github.com/unikraft/kraftkit