Skip to content

Commit

Permalink
fix from and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thomedw committed Mar 28, 2024
1 parent ce25bdc commit ae6bd28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
FROM ptkis/ubuntu-ffmpeg:22.04-jdk17-20221130

RUN curl --location https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2022.9-docker.zip -o /tmp/YourKit-JavaProfiler.zip && \
unzip /tmp/YourKit-JavaProfiler.zip -d /usr/local && \
rm /tmp/YourKit-JavaProfiler.zip

EXPOSE 10001
FROM eclipse-temurin:17.0.10_7-jdk-alpine

ARG VERSION
ARG ARTIFACT
Expand Down
5 changes: 1 addition & 4 deletions src/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
#show all environment
export

[[ -z "$YOURKIT_BROKER_URL" ]] && { echo "Please set YOURKIT_BROKER_URL" ; exit 1; }
[[ -z "$YOURKIT_BROKER_TOKEN" ]] && { echo "Please set YOURKIT_BROKER_TOKEN" ; exit 1; }

exec java -agentpath:/usr/local/YourKit-JavaProfiler-2022.9/bin/linux-x86-64/libyjpagent.so=broker_url=$YOURKIT_BROKER_URL,broker_token=$YOURKIT_BROKER_TOKEN $JAVA_OPTS -jar "$ARTIFACT-$VERSION.jar" $@
exec java $JAVA_OPTS -jar "$ARTIFACT-$VERSION.jar" $@

0 comments on commit ae6bd28

Please sign in to comment.