File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 70
70
- setup_build_environment
71
71
- run : echo "Releasing version" && ./gradlew printVersion
72
72
- run : ./gradlew publish
73
+ - run : DOCKER_TAG=${CIRCLE_TAG} make docker docker-push
73
74
- run :
74
75
name : " Copy artifacts to workspace"
75
76
command : |
Original file line number Diff line number Diff line change
1
+ DOCKER_IMAGE ?= hypertrace/javaagent
2
+ DOCKER_TAG ?= latest
3
+
4
+ .PHONY : assemble
5
+ assemble :
6
+ ./gradlew assemble --stacktrace
1
7
2
8
.PHONY : build
3
9
build :
@@ -13,6 +19,14 @@ muzzle:
13
19
# for injecting helper classes from the same packages as instrumentations
14
20
./gradlew muzzle --no-daemon
15
21
22
+ .PHONY : docker
23
+ docker : assemble
24
+ docker build -f javaagent/Dockerfile javaagent/ -t ${DOCKER_IMAGE} :${DOCKER_TAG}
25
+
26
+ .PHONY : docker-push
27
+ docker-push :
28
+ docker push ${DOCKER_IMAGE} :${DOCKER_TAG}
29
+
16
30
.PHONY : test
17
31
test :
18
32
./gradlew check
Original file line number Diff line number Diff line change
1
+ # This is a dockerfile that contains the Hypertrace javaagent.
2
+ # This image can be used to get the javaagent into app images or
3
+ # as Kubernetes init container to copy the javaagent into the volume mounted into the
4
+ # application container.
5
+
6
+ FROM hypertrace/java:11
7
+
8
+ LABEL maintainer="Hypertrace 'https://www.hypertrace.org/'"
9
+
10
+ ENV JAVAAGENT=/opt/hypertrace/hypertrace-agent-all.jar
11
+ COPY build/libs/hypertrace-agent-*-all.jar ${JAVAAGENT}
12
+
13
+ # The following binaries are used by sidecar injector
14
+ # This statement tests if they exists in the image
15
+ RUN which base64
16
+
17
+ # env vars are not interpreted
18
+ CMD ["/opt/hypertrace/hypertrace-agent-all.jar" ]
You can’t perform that action at this time.
0 commit comments