Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeff-labs/openjdk-jre-apm

Jeff's OpenJDK docker image with Elastic APM java agent
https://github.com/jeff-labs/openjdk-jre-apm

docker docker-container docker-image open-source

Last synced: 4 days ago
JSON representation

Jeff's OpenJDK docker image with Elastic APM java agent

Awesome Lists containing this project

README

        

# OpenJDK with Elastic APM java agent
Jeff's OpenJDK (8/11) docker image with Elastic APM java agent.

![docker pulls](https://img.shields.io/docker/pulls/mrjeffapp/openjdk-jre-apm.svg?style=plastic)
![docker stars](https://img.shields.io/docker/stars/mrjeffapp/openjdk-jre-apm.svg?style=flat)

[Docker Hub](https://hub.docker.com/r/mrjeffapp/openjdk-jre-apm)

[Elastic APM java agent reference](https://www.elastic.co/guide/en/apm/agent/java/current/index.html)

## How to use the docker image
Extend your image from our image.
```Dockerfile
FROM mrjeffapp/openjdk-jre-apm:11-1.27.0

ENV JAVA_OPTS=""

CMD exec java -Djava.security.egd=file:/dev/./urandom -jar -javaagent:elastic-apm-agent.jar $JAVA_OPTS micro-service.jar
````

## How to build a new image

1. Change the makefile properties to set a new Java version or Elastic APM version.

2. Merge your changes to the master branch.

3. A GitHub actions job should release the new image.