azure-pipelines-agent: pipelines agent on alpine reporting error relocating ./bin/libcoreclr.so

Agent Version and Platform

2.166.3 - Alpine Linux 3.11.5 (x86-64)

What’s not working?

trying to get Alpine to run the azure pipelines agent 2.166.3, i have installed and configured many agents before on RH7 and Windows without issues.

I have downloaded the agent and tried running config.sh but it is outputting

fubar:~/myagent$ ./config.sh 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. fubar:~/myagent$

appreciate that alpine is a musl based distro and i believe i have satisfied all the dependencies listed when the dotnet-install.sh script runs and outputs the missing dependency warnings.

the musl lib and gcc are working fine as i have ported my application to Alpine i just need to add it into my build pipe as a target but cat get the agent running to do that.

first question is should i be able to run the agent on alpine ?

more info on config below - happy to supply anything else required.

fubar:~/myagent$ dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.1.201 Commit: b1768b4ae7

Runtime Environment: OS Name: alpine OS Version: 3.11 OS Platform: Linux RID: alpine.3.11-x64 Base Path: /home/dotnet/sdk/3.1.201/

Host (useful for support): Version: 3.1.3 Commit: 4a9f85e9f8

.NET Core SDKs installed: 3.1.201 [/home/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.3 [/home/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.3 [/home/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download fubar:~/myagent$ uname -a Linux fubar 5.4.27-0-lts #1-Alpine SMP Mon, 23 Mar 2020 18:15:20 UTC x86_64 Linux

fubar:~/myagent$ apk list | grep icu icu-dev-64.2-r1 x86_64 {icu} (MIT ICU Unicode-TOU) icu-libs-64.2-r1 x86_64 {icu} (MIT ICU Unicode-TOU) [installed] py3-icu-2.3.1-r2 x86_64 {py3-icu} (MIT) icu-static-64.2-r1 x86_64 {icu} (MIT ICU Unicode-TOU) icu-64.2-r1 x86_64 {icu} (MIT ICU Unicode-TOU) [installed] harfbuzz-icu-2.6.4-r0 x86_64 {harfbuzz} (MIT) icu-doc-64.2-r1 x86_64 {icu} (MIT ICU Unicode-TOU)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 16 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Hi everyone,

Any news about this topic?

I really need it to run official docker:dind images as build agents in Azure Pipelines. Especially when .NET 6 is officially supported on Alpine.

@SymbioticKilla Support of Alpine will require a separate build of our Agent (linux-musl-x64). As I know we don’t have plans for official support of Alpine, so the support of this OS won’t appear in the nearest future.