Skip to content

Commit

Permalink
[yourkit-testing] add yourkit
Browse files Browse the repository at this point in the history
  • Loading branch information
dwwoelfel committed Sep 12, 2024
1 parent 2868de2 commit 8a0f68a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 12 additions & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ FROM amazoncorretto:22 AS builder

WORKDIR /app

RUN yum -y install tar gzip git
RUN yum -y install tar gzip git unzip

RUN curl -L -O https://github.com/clojure/brew-install/releases/download/1.11.3.1463/linux-install.sh

RUN echo hi

RUN echo '0c41063a2fefb53a31bc1bc236899955f759c5103dc0495489cdd74bf8f114bb linux-install.sh' | sha256sum -c

RUN chmod +x linux-install.sh
RUN ./linux-install.sh

RUN curl -L -O https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2024.3-docker.zip

RUN echo '4fb651cef6a4c0cb9c27a07ecb8d9438c0f258119c78aa743385ef4b2c0edd1e YourKit-JavaProfiler-2024.3-docker.zip' | sha256sum -c

RUN unzip YourKit-JavaProfiler-2024.3-docker.zip

COPY deps.edn .

RUN clojure -P
Expand All @@ -24,6 +34,7 @@ FROM amazoncorretto:22
WORKDIR /app

COPY --from=builder /app/target/instant-standalone.jar ./target/instant-standalone.jar
COPY --from=builder /app/YourKit-JavaProfiler-2024.3 /usr/local/YourKit-JavaProfiler-2024.3

EXPOSE 5000
EXPOSE 6005
3 changes: 2 additions & 1 deletion server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ services:
ports:
- "80:5000"
- "6005:6005"
command: sh -c 'java $${JAVA_OPTS} -server -jar target/instant-standalone.jar'
- "10001:10001"
command: sh -c 'java $${JAVA_OPTS} -agentpath:/usr/local/YourKit-JavaProfiler-2024.3/bin/linux-x86-64/libyjpagent.so=port=10001,listen=all -server -jar target/instant-standalone.jar'
logdna:
image: logdna/logdna-agent:3.8
environment:
Expand Down

0 comments on commit 8a0f68a

Please sign in to comment.