new-relic-agent icon indicating copy to clipboard operation
new-relic-agent copied to clipboard

Plans for adding support for Alpine Linux?

Open roens opened this issue 5 years ago • 3 comments

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:

  • Why does the init script expect bash to be present?
  • Why isn't Python 3 supported (2.7 EOL is coming, and presently has just over 10 months left)?
  • In Alpine Linux, sh, env, and initscripts are all part of busybox

roens avatar Feb 25 '19 23:02 roens

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.

Dean-Coakley avatar Feb 27 '19 09:02 Dean-Coakley

Hey @Dean-Coakley,

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

roens avatar Mar 05 '19 20:03 roens

The workaround which worked for me is:

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

EmileForker avatar Mar 01 '20 22:03 EmileForker