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

python flask application #1

Open
Towfiqomi opened this issue May 6, 2020 · 1 comment
Open

python flask application #1

Towfiqomi opened this issue May 6, 2020 · 1 comment

Comments

@Towfiqomi
Copy link

Hi is it possible to create a python flask unikernel using capstan.

Thanks.

@wkozaczuk
Copy link
Owner

Hi,

Since I created this repo 2 years ago, we have migrated most of it to the main OSv repo (please see this).

Yeah, obviously you should be able to run your python app on OSv as long as it runs on Linux and does not use fork() under the hood. I am not familiar with Flask but I assume it is HTTP webapp type of framework so that should not be an issue.

I would encourage to first try to use capstan in the package mode. For starters you may want to look at this guide or this one. In high-level you need to put python and your flask app files into an OSv image. You may also notice that capstan supports Python runtimes but I would NOT recommend using it as it depends on some old python version.

Capstan is able to pull kernel and mpm artifacts from OSv github releases which contains way newer version than older S3 Mikelagelo repo. Please note that capstan caches downloaded kernel and mpm artifacts under $(HOME)/.capstan directory so if you want to use latest OSv kernel (osv-loader.qemu), you can pull it from the nighty releases github repo and replace it in proper directory under ~/.capstan/repository/osv-loader/ (if you use newest kernel please also use also corresponding osv-bootstrap.mpm from the nightly repo and put it under ~/.capstan/packages). Capstan cannot pull artifacts from the nightly releases repo yet, but it will soon.

Please contact us on the OSv mailing list and I am sure you will have some :-).

Waldek

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