Integrating OpenTelemetry Java Agent in digiRunner
Dockerfile for the digiRunner Application Image
FROM azul/zulu-openjdk-alpine:21
RUN set -eux; \
apk update; \
apk upgrade; \
apk add --no-cache curl; \
mkdir -p /app; \
rm -rf /var/cache/apk/*;
WORKDIR /opt/dgr-v4
COPY ./dgrv4_Gateway_serv/build/libs/H2/ .
ENV TAEASK=TsmpAESEncryptionActionSecretKey
ENV APP_ROOT_DIR=/opt/dgr-v4
RUN set -eux && \
adduser -D tpiuser && \
mkdir -p /opt/dgr-v4/h2dir /opt/dgr-v4/apilogs && \
chown -R tpiuser:tpiuser /opt
USER tpiuser
ENTRYPOINT [ \
"java", \
"-cp", \
"app-cp/*" \
]
CMD [ \
"-Xms2g", \
"-Xmx4g", \
"-Dloader.path=lib/,libsext/", \
"-Djava.security.debug=properties", \
"-Djava.security.properties=./config/dgr.java.security", \
"-Dspring.config.location=file:./config/", \
"-DdigiRunner.token.key-store.path=./keys", \
"-Djasypt.encryptor.privateKeyLocation=file:./keys/enc.pem", \
"-Dfile.encoding=UTF-8", \
"-Dlogging.config=file:./config/logback.xml", \
"-Dserver.port=18080", \
"-Dspring.profiles.active=local", \
"org.springframework.boot.loader.launch.PropertiesLauncher" \
]
Sample docker run Command to Run digiRunner
Enabling OpenTelemetry Auto-Instrumentation
Key Changes Explained
Notes
PreviousGoogle Authentication - OIDC with Google IdPNextOIDC Integration: Obtaining Tokens from Keycloak and Calling APIs via digiRunner
Was this helpful?
