mirror of
https://github.com/google/nomulus
synced 2026-10-01 04:05:49 +00:00
Add Cloud java profiler to nomulus docker images (#2919)
* add cloud profiler to dockerfile and start script * add apt-get update * change in cb machine type for nomulus * fix typo * add max worker limit to gradle tests * Switch to root before doing apt-get * correct dockerfile * jetty/Dockerfile * profiler service conditional to kubernetes container name
This commit is contained in:
@@ -2,5 +2,16 @@ FROM jetty:12-jdk21
|
||||
ADD --chown=jetty:jetty build/jetty-base /jetty-base
|
||||
ADD --chown=jetty:jetty start.sh /
|
||||
ADD --chown=jetty:jetty logging.properties /
|
||||
|
||||
USER root
|
||||
|
||||
# Create a directory, download and extract the Cloud Profiler agent, version locked to "cloud-profiler-java-agent_20241028_RC00.tar.gz".
|
||||
RUN mkdir -p /opt/cprof && \
|
||||
wget -q -O- https://storage.googleapis.com/cloud-profiler/java/cloud-profiler-java-agent_20241028_RC00.tar.gz\
|
||||
| tar xzv -C /opt/cprof && \
|
||||
chown -R jetty:jetty /opt/cprof
|
||||
|
||||
USER jetty
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/bin/sh", "/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user