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

Alpine Linux (for Docker images) #226

Closed
markrendle opened this issue Jul 15, 2016 · 5 comments
Closed

Alpine Linux (for Docker images) #226

markrendle opened this issue Jul 15, 2016 · 5 comments

Comments

@markrendle
Copy link

markrendle commented Jul 15, 2016

Support for Alpine Linux has been mentioned in the past on various repositories. It's desirable because the Docker image for Alpine is under 5MB in size, compared to over 100MB for Debian 8, which is the current base for the dotnet images. Docker are looking to migrate all their official library images to Alpine.

The blocker for .NET Core has been the availability of the core dependencies on Alpine, of which the last outstanding one was LTTng, which is now in the APK testing repository for Alpine 3.5.

I'm not an expert on building .NET Core, CLI, etc, but if anybody fancies having a go at creating an Alpine build, it should be possible.

Looking at the Linux build instructions for CoreCLR, all the APT packages mentioned are available now, at least in Alpine's edge/testing repository, if not in edge/main:

APT APK
cmake cmake
llvm-3.5 llvm
clang-3.5 clang (appears to be 3.8)
lldb-3.6 lldb (in edge/testing)
lldb-3.6-dev lldb-dev (in edge/testing)
libunwind8 libunwind (in edge/main)
libunwind8-dev libunwind-dev (in edge/main)
gettext gettext
libicu-dev icu-dev
liblttng-ust-dev lttng-ust-dev (in edge/testing)
libcurl4-openssl-dev curl-dev
libssl-dev openssl-dev
uuid-dev util-linux-dev (seems to be where the uuid.h file lives)

And here's a list of the deps from the dotnet image with their Alpine equivalents.

APT package APK package
libc6 libc6-compat
libcurl3 libcurl
libgcc1 libgcc
libgssapi-krb5-2 krb5-libs
libicu52 icu-libs
liblttng-ust0 lttng-ust-dev
libssl1.0.0 libssl1.0
libstdc++6 libstdc++
libunwind8 libunwind
libuuid1 libuuid
zlib1g zlib

Right, this is where somebody points out that the only reason these dependencies have made it into Alpine is that a .NET Core team member ported them all, for precisely this reason, and I've wasted the time spent on this issue. 😞

@glennc
Copy link

glennc commented Jul 22, 2016

See this issue: https://github.com/dotnet/coreclr/issues/917

@blackdwarf
Copy link

Hm, seems like dotnet/coreclr#917 covers the work of porting to Alpine Linux. @markrendle you ok if we close this issue?

@blackdwarf
Copy link

Closing this issue due to lack of response.

@mo-saeed
Copy link

mo-saeed commented Mar 4, 2021

Hello @markrendle I have this issue while using this lib icu-libs

Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by ./bin/libcoreclr.so)
Error relocating ./bin/libcoreclr.so: __finite: symbol not found
Error relocating ./bin/libcoreclr.so: __isnan: symbol not found
Error relocating ./bin/libcoreclr.so: __finitef: symbol not found
Error relocating ./bin/libcoreclr.so: __isnanf: symbol not found
Error relocating ./bin/libcoreclr.so: pthread_attr_setaffinity_np: symbol not found
Error relocating ./bin/System.Net.Http.Native.so: __strdup: symbol not found
libicu's dependencies missing for .NET Core 3.1
Execute ./bin/installdependencies.sh to install any missing dependencies.

@mairaw
Copy link
Contributor

mairaw commented Mar 4, 2021

@mo-saeed it would probably be better to open a new issue given this one was closed due to the lack of response and it's almost 5 years old.

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

5 participants