repo2docker icon indicating copy to clipboard operation
repo2docker copied to clipboard

Is it possible to use repo2docker to customize a vm

Open picca opened this issue 3 years ago • 4 comments

Hello, I would like to provision full vm and let users customize them with your configure system.

Can we use repo2docker from within a vm in order to modify a running system ?

if not, is it possible to run a docker image as a vm with qemu or convert a docker image into a full vm ?

thanks for considering.

picca avatar Jan 26 '22 13:01 picca

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar Jan 26 '22 13:01 welcome[bot]

Ultimately, repo2docker's output is a Dockerfile, which it then asks docker (or podman) to build. It cannot modify the host system. It's fine, though, to have a VM that mostly just runs just one container, though, if that's what you are after.

If you want folks to be able to customize actual VMs, though, repo2docker's not the right tool.

minrk avatar Jan 26 '22 15:01 minrk

Ultimately, repo2docker's output is a Dockerfile, which it then asks docker (or podman) to build. It cannot modify the host system. It's fine, though, to have a VM that mostly just runs just one container, though, if that's what you are after.

thanks for the answer

If you want folks to be able to customize actual VMs, though, repo2docker's not the right tool.

Do you know tools for this purpose ?

picca avatar Jan 26 '22 15:01 picca

FYI repo2docker has a pluggable engine. I had a go at generating shell scripts / packer files as an interesting exercise https://github.com/manics/repo2shellscript

This is not suitable for production, nor is it in anyway supported, but it might give you some ideas, which came out of this Discourse discussion: https://discourse.jupyter.org/t/brainstorming-repo2docker-action-vm-on-gcp-aws-azure/5345

Shall we close this issue and continue the conversation there?

manics avatar Jan 26 '22 15:01 manics