Skip to content

Injector

Description

This image permits launching Punch log-injector :

  • punchplatform libraries (punch-injector-app jar)
  • a container environment :
    • JAVA_OPTS & CLASSPATH set to resolve the required Java libraries;
    • PUNCHPLATFORM_CONF_DIR set to a mock Punch Platform conf dir (/opt/punch/conf)

The Dockerfile to construct this image is the following :

FROM openjdk:8-alpine

ENV PUNCHPLATFORM_CONF_DIR=/opt/punch/conf \
    JAVA_OPTS="-server -Xms128m -Xmx256m -Dlog4j.configurationFile=/opt/punch/log4j2/log4j2-stdout.xml" \
    CLASSPATH="/opt/punch/lib/*"

COPY target/punch /opt

WORKDIR /opt/punch/conf
ENTRYPOINT ["java", "org.thales.punch.applications.injector.Main", "-c"]
CMD ["injector.json"]

Usage

Get it !

docker pull ghcr.io/punchplatform/injector:7.0.1-SNAPSHOT