Skip to content

Create a Docker image for netpkg-tool #47

@philippgille

Description

@philippgille

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):

  1. git clone https://github.com/phil-harmoniq/aspnet-src
  2. docker 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
  3. ./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:

  1. 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
  2. libglib2.0-0 needs 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions