I am trying to add newrelic to appengine flexible custom app engine.  But 
getting below error.

INFO] GCLOUD: Removing intermediate container 7a7cd07374ff
[INFO] GCLOUD: Step 4/8 : ADD *.war /app.war
[INFO] GCLOUD:  ---> 26620f873061
[INFO] GCLOUD: Removing intermediate container 7b19231077d9
[INFO] GCLOUD: Step 5/8 : ADD dependency/newrelic ${NEWRELIC_HOME}
[INFO] GCLOUD: ADD failed: stat 
/var/lib/docker/tmp/docker-builder187142805/dependency/newrelic: no such file 
or directory
[INFO] GCLOUD: ERROR
[INFO] GCLOUD: ERROR: build step 
"gcr.io/cloud-builders/docker@sha256:672e24919dc32af287b9bcaead467b8d7f3decd7baa58b55f606c0e945262a91"
 failed: exit status 1
[INFO] GCLOUD: 
--------------------------------------------------------------------------------
[INFO] GCLOUD: 
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at 
https://console.cloud.google.com/gcr/builds/42b5537a-4aa4-4e7d-aed9-ec0af591387f?project=okrs-174109
 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs 
for details


Below is my Dockerfile

FROM openjdk:8-jre-alpine

# Newrelic directory to copy Java agent files to
ENV NEWRELIC_HOME /usr/local/newrelic

ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
    JHIPSTER_SLEEP=0 \
    JAVA_OPTS="-javaagent:${NEWRELIC_HOME}/newrelic.jar 
-Dnewrelic.config.file=${NEWRELIC_HOME}/newrelic.yml"

# add directly the war
ADD *.war /app.war

ADD dependency/newrelic ${NEWRELIC_HOME}

ADD classes/config/newrelic.yml ${NEWRELIC_HOME}

Any idea what I am doing wrong here.

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c62bd76f-5e92-49c6-8035-b6ab1ac61c23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... vishakha . sawant

Reply via email to