From f90fd34d32a1b116aad2f911f925de89c3a1a606 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 27 Jul 2026 14:44:51 +0000 Subject: [PATCH] version bump to 12.9.0 --- 12.9.0/Dockerfile | 37 +++++++++++++++++++++++++++++++++++++ 12.9.0/docker-entrypoint.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 12.9.0/Dockerfile create mode 100644 12.9.0/docker-entrypoint.sh diff --git a/12.9.0/Dockerfile b/12.9.0/Dockerfile new file mode 100644 index 0000000..f08a6c6 --- /dev/null +++ b/12.9.0/Dockerfile @@ -0,0 +1,37 @@ +#------------------------------------------------------------------------------ +# Copyright [2019] New Relic Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +#------------------------------------------------------------------------------ + + +FROM alpine:3.24@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b AS build + +ENV NEWRELIC_VERSION=12.9.0.38 +ENV NEWRELIC_NAME=newrelic-php5-${NEWRELIC_VERSION}-linux-musl +ENV NEWRELIC_SHA=f7e64783a8a8fc0f47f0c90849bf59fe5a1afb8561dd00943d298f7e80f35112 + +RUN set -ex; \ + wget -O /tmp/${NEWRELIC_NAME}.tar.gz https://download.newrelic.com/php_agent/archive/${NEWRELIC_VERSION}/${NEWRELIC_NAME}.tar.gz; \ + cd /tmp/; \ + echo "$NEWRELIC_SHA $NEWRELIC_NAME.tar.gz" | sha256sum -c; \ + tar -xzf ${NEWRELIC_NAME}.tar.gz; \ + export NR_INSTALL_SILENT=1; \ + ${NEWRELIC_NAME}/newrelic-install install_daemon + +FROM alpine:3.24@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b + +# The daemon needs certs installed to run +RUN apk add --no-cache \ + ca-certificates + +RUN set -ex; \ + mkdir /var/log/newrelic + +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +COPY --from=build /usr/bin/newrelic-daemon /usr/bin/newrelic-daemon + +EXPOSE 31339 + +ENTRYPOINT ["sh","/usr/bin/docker-entrypoint.sh"] + +CMD ["/usr/bin/newrelic-daemon"] diff --git a/12.9.0/docker-entrypoint.sh b/12.9.0/docker-entrypoint.sh new file mode 100644 index 0000000..e460c20 --- /dev/null +++ b/12.9.0/docker-entrypoint.sh @@ -0,0 +1,26 @@ +#!/bin/sh +#------------------------------------------------------------------------------ +# Copyright [2019] New Relic Corporation. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +#------------------------------------------------------------------------------ +set -e + +defaultArgs=" --logfile /proc/self/fd/1 --watchdog-foreground --address=$(hostname):31339" + +case "$1" in + -*) + #args start with a flag + set -- /usr/bin/newrelic-daemon $defaultArgs "$@" + ;; + '/usr/bin/newrelic-daemon') + # Remove the first element from the arguments + shift 1 + set -- /usr/bin/newrelic-daemon $defaultArgs "$@" + ;; + *) + #likely invalid args, but the daemon will handle it with graceful messages. + set -- /usr/bin/newrelic-daemon $defaultArgs "$@" + ;; +esac + +exec "$@"