-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Some people might want to use the tool, but don't want to install all the requirements (.NET Core SDK, FUSE for appimagetool). Docker containers are perfect for that - they contain all dependencies and after usage they can be thrown away.
Usage would be something like this (on a machine with only git and Docker installed):
git clone https://github.com/phil-harmoniq/aspnet-srcdocker run --rm -v ${PWD}/aspnet-src:/root/src -v ${PWD}/aspnet-out:/root/out phil-harmoniq/netpkg-tool netpkg-tool /root/src /root/out -n aspnet-pkg./aspnet-out/aspnet-pkg
The Docker image should probably be based on the official microsoft/dotnet Docker image (tag 2.0-sdk), but normal appimagetool usage depends on FUSE, which doesn't work in Docker containers, see this AppImage wiki page and the AppImage wiki page I wrote regarding packaging .NET Core apps. So the following is probably required:
- netpkg-tool needs to check if it's inside a container. If not: use appimagetool as is, otherwise unpack it and use the binary inside its AppDir
libglib2.0-0needs to be installed in the Docker image so unpacking the appimagetool works
I've done something similar for philippgille/hello-netcoreapp, so I know how to do this and I would like to create a PR if you think this would be a nice feature.