nginxinc / new-relic-agent

A new relic agent for NGINX Plus metrics
BSD 2-Clause "Simplified" License
22 stars 16 forks source link

Plans for adding support for Alpine Linux? #8

Open roens opened 5 years ago

roens commented 5 years ago

We're using Nginx in Alpine Linux (AWS ECS Fargate), and are interested in employing this agent.

The RPM package appears to build, after installing the alpine-sdk and rpm packages. However, attempt to install the built package results in failing dependencies:

/new-relic-agent # rpm -i build_output/nginx-nr-agent-2.0.1-1.ngx.noarch.rpm 
error: Failed dependencies:
    /bin/bash is needed by nginx-nr-agent-2.0.1-1.ngx.noarch
    /bin/sh is needed by nginx-nr-agent-2.0.1-1.ngx.noarch
    /usr/bin/env is needed by nginx-nr-agent-2.0.1-1.ngx.noarch
    chkconfig is needed by nginx-nr-agent-2.0.1-1.ngx.noarch
    initscripts >= 8.36 is needed by nginx-nr-agent-2.0.1-1.ngx.noarch
    python >= 2.6 is needed by nginx-nr-agent-2.0.1-1.ngx.noarch
    python-daemon is needed by nginx-nr-agent-2.0.1-1.ngx.noarch

Which brings up questions like:

Dean-Coakley commented 5 years ago

Hi @roens

We are not actively developing or supporting the new relic agent now. - See: https://github.com/nginxinc/new-relic-agent#support

However, if you’d like to submit a pull request, we will take a look and merge it if it looks ok.

roens commented 5 years ago

Hey @Dean-Coakley,

Thanks for the response and info! I'll look into what I might manage to do with it.

EmileForker commented 4 years ago

The workaround which worked for me is:

  1. Install all needed deps separately
  2. Install agent in --nodeps mode