Skip to content

Commit

Permalink
CORE-2006: removed support for OpenTelemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
slr71 committed Aug 3, 2024
1 parent bd29c79 commit 36ff673
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
pom.xml
pom.xml.asc
*.jar
!opentelemetry-javaagent.jar
*.class
/.lein-*
/.nrepl-port
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
pom.xml
pom.xml.asc
*.jar
!opentelemetry-javaagent.jar
*.class
.eastwood
/.lein-*
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM clojure:openjdk-17-lein-alpine
FROM clojure:temurin-22-lein-jammy

WORKDIR /usr/src/app

RUN apk add --no-cache git
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*

RUN ln -s "/opt/openjdk-17/bin/java" "/bin/iplant-groups"

ENV OTEL_TRACES_EXPORTER none
RUN ln -s "/opt/java/openjdk/bin/java" "/bin/iplant-groups"

COPY project.clj /usr/src/app/
RUN lein deps
Expand All @@ -17,7 +17,7 @@ COPY . /usr/src/app
RUN lein do clean, uberjar && \
cp target/iplant-groups-standalone.jar .

ENTRYPOINT ["iplant-groups", "-Dlogback.configurationFile=/etc/iplant/de/logging/iplant-groups-logging.xml", "-javaagent:/usr/src/app/opentelemetry-javaagent.jar", "-Dotel.resource.attributes=service.name=iplant-groups", "-cp", ".:iplant-groups-standalone.jar:/", "iplant_groups.core"]
ENTRYPOINT ["iplant-groups", "-Dlogback.configurationFile=/etc/iplant/de/logging/iplant-groups-logging.xml", "-cp", ".:iplant-groups-standalone.jar:/", "iplant_groups.core"]
CMD ["--help"]

ARG git_commit=unknown
Expand Down
Binary file removed opentelemetry-javaagent.jar
Binary file not shown.
9 changes: 3 additions & 6 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:description "A REST front-end for Grouper."
:url "https://github.com/cyverse-de/iplant-groups"
:license {:name "BSD"
:url "http://iplantcollaborative.org/sites/default/files/iPLANT-LICENSE.txt"}
:url "https://cyverse.org/license"}
:manifest {"Git-Ref" ~(git-ref)}
:uberjar-name "iplant-groups-standalone.jar"
:dependencies [[org.clojure/clojure "1.11.3"]
Expand All @@ -36,14 +36,11 @@
[lein-ancient "0.7.0"]
[lein-ring "0.12.6"]
[test2junit "1.4.4"]]
:profiles {:dev {:resource-paths ["conf/test"]
:jvm-opts ["-Dotel.javaagent.enabled=false"]}
:profiles {:dev {:resource-paths ["conf/test"]}
:uberjar {:aot :all}}
:main ^:skip-aot iplant-groups.core
:ring {:handler iplant-groups.routes/app
:init iplant-groups.core/init-service
:port 31310}
:uberjar-exclusions [#"(?i)META-INF/[^/]*[.](SF|DSA|RSA)"]
:jvm-opts ["-Dlogback.configurationFile=/etc/iplant/de/logging/iplant-groups-logging.xml"
"-javaagent:./opentelemetry-javaagent.jar"
"-Dotel.resource.attributes=service.name=iplant-groups"])
:jvm-opts ["-Dlogback.configurationFile=/etc/iplant/de/logging/iplant-groups-logging.xml"])

0 comments on commit 36ff673

Please sign in to comment.