Add Stackdriver Profiler Java agent to adservice.
This commit is contained in:
parent
4461dd5d00
commit
6fbe710ee4
1 changed files with 5 additions and 3 deletions
|
@ -14,11 +14,13 @@ RUN ./gradlew installDist
|
||||||
FROM openjdk:8-slim
|
FROM openjdk:8-slim
|
||||||
|
|
||||||
# Download Stackdriver Profiler Java agent
|
# Download Stackdriver Profiler Java agent
|
||||||
RUN apt-get update
|
RUN apt-get -y update && apt-get install -qqy \
|
||||||
RUN apt-get install -qq wget
|
wget \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN mkdir -p /opt/cprof && \
|
RUN mkdir -p /opt/cprof && \
|
||||||
wget -q -O- https://storage.googleapis.com/cloud-profiler/java/latest/profiler_java_agent.tar.gz \
|
wget -q -O- https://storage.googleapis.com/cloud-profiler/java/latest/profiler_java_agent.tar.gz \
|
||||||
| tar xzv -C /opt/cprof
|
| tar xzv -C /opt/cprof && \
|
||||||
|
rm -rf profiler_java_agent.tar.gz
|
||||||
|
|
||||||
RUN GRPC_HEALTH_PROBE_VERSION=v0.2.1 && \
|
RUN GRPC_HEALTH_PROBE_VERSION=v0.2.1 && \
|
||||||
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
|
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue