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

Add vault dynamic application build from source #25

Open
StefanJum opened this issue Jul 14, 2023 · 2 comments
Open

Add vault dynamic application build from source #25

StefanJum opened this issue Jul 14, 2023 · 2 comments

Comments

@StefanJum
Copy link
Member

StefanJum commented Jul 14, 2023

Add the vault applications as a dynamic build, from the application source files.
Test it using app-elfloader.
If any problems appear, open issues on the Unikraft core repository.

The typical process of adding apps to the dynamic-apps repository, built from the source files, is:

  • Create the app directory that will store: the executable, depending shared libraries, configuration files, data files, etc. Name it app-name-source (e.g. app-redis-source).
  • Download the source code for the application (use apt source or find the source code somwhere else, like GitHub)
  • Build the application following the instructions provided.
  • Update or create any configuration files, if required.
  • Run the executable locally, to test it.
  • Run the extract.sh script to pack the application.
  • Build a bash script that does all the steps you just did (downloads the sources, builds the application, creates the config files, calls the extract.sh script).
    You can take a peek at the static-pie scripts (app-nginx for example).
  • Now profit. Use app-elfloader.

Note that vault seems to come as a static-pie ELF when installing it on a Linux machine, so extra steps might be required in the building step do compile it as a dynamically linked executable (if possible).

Hackathon points: 40

@b1shtream
Copy link
Contributor

@StefanJum As discussed before, Vault is not a dynamic app. It is a static binary so we can add it to the static pie application repository.

@StefanJum
Copy link
Member Author

@chococandy63 you can do that, yes.
This issue though is for building Vault from source, which means you can interfere in the build process and build Vault as a dynamic executable.

Nevertheless, do add the static application in the static-pie-apps repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants