forked from unikraft/catalog
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(library): Include latest fstab vfs automount features (#37)
Reviewed-by: Razvan Deaconescu <[email protected]> Approved-by: Razvan Deaconescu <[email protected]>
- Loading branch information
Showing
9 changed files
with
126 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM gcc:13.2.0 AS fallback | ||
|
||
COPY ./fallback.c /fallback.c | ||
|
||
RUN set -xe; \ | ||
gcc \ | ||
-fPIC \ | ||
-g \ | ||
-o /fallback \ | ||
-O3 \ | ||
-static-pie \ | ||
-Wall \ | ||
-Wextra \ | ||
-Wno-unused \ | ||
-Wno-unused-parameter \ | ||
/fallback.c | ||
|
||
FROM scratch | ||
|
||
COPY --from=fallback /fallback /fallback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#include <stdio.h> | ||
|
||
int main(int argc, char *argv[]) { | ||
printf( | ||
" .--------------------.\n" | ||
" ( Hello from Unikraft! )\n" | ||
" '--------------------'\n" | ||
" \\\n" | ||
" \\\n" | ||
" _\n" | ||
" c'o'o .--.\n" | ||
" (| |)_/\n" | ||
"\n" | ||
"\n" | ||
"This is the default message when no root filesystem is supplied to this\n" | ||
"'base' image. This 'base' image is a general-purpose unikernel runtime\n" | ||
"and is intended to be used for your application.\n" | ||
"\n" | ||
"To use this 'base' image, place a `Kraftfile` in your application\n" | ||
"repository. For example:\n" | ||
"\n" | ||
"\t```yaml\n" | ||
"\tspec: v0.6\n" | ||
"\truntime: unikraft.org/base:latest\n" | ||
"\trootfs: ./Dockerfile\n" | ||
"\t```\n" | ||
"\n" | ||
"In the above example, you can supply this 'base' image with your own \n" | ||
"root filesystem. This filesystem is defined through the `Dockerfile`.\n" | ||
"Once setup, simply call:\n" | ||
"\n" | ||
"\t```bash\n" | ||
"\tkraft run .\n" | ||
"\t```\n" | ||
"\n" | ||
"For more information, how to get started and examples using this 'base'\n" | ||
"image, please visit:\n" | ||
"\n" | ||
"\thttps://unikraft.org/guides/intro-to-base-image\n" | ||
"\n" | ||
"Happy krafting!\n" | ||
"\n" | ||
); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters