Skip to content

Resourcectl

Description

This image permits lauching resourcectl command :

  • punchplatform libraries (punch-command-app jar)
  • a minimalist punchplatform.properties, saved to a mock Punch Platform conf dir (/opt/punch/conf);
  • a container environment :
    • JAVA_OPTS & CLASSPATH set to resolve the required Java librairies;
    • PUNCHPLATFORM_CONF_DIR set to a mock Punch Platform conf dir (/opt/punch/conf)
    • PUNCHPLATFORM_INSTALL, set to a JSON-encoded string, which contains all the job-related information, as well as the platform properties.

The Dockerfile to contruct this image is the following :

ARG PUNCHPLATFORM_VERSION

FROM gitlab.thalesdigital.io:5005/punch/product/pp-punch/base:${PUNCHPLATFORM_VERSION}

ARG PUNCHPLATFORM_VERSION
ENV PUNCH_WORKDIR=/opt/punch

WORKDIR ${PUNCH_WORKDIR}

ENV PUNCHPLATFORM_CONF_DIR=${PUNCH_WORKDIR}/conf \
    PUNCHPLATFORM_PROPERTIES_FILE=${PUNCH_WORKDIR}/punchplatform.properties

COPY target/dependency/punch-command-app-${PUNCHPLATFORM_VERSION}-jar-with-dependencies.jar commands.jar
COPY resources/ log4j/

ENTRYPOINT ["java", "-Dlog4j.configuration=log4j/log4j2.properties", "-Dlog4j.configurationFile=log4j/log4j2-stdout.xml", "-Dpunchplatform.log.dir=/var/logs", "-Dlogfile.name=resourcectl", "-cp", "commands.jar", "org.thales.punch.cli.resourcectl.ResourceCtl"]
CMD "help"

Usage

This image is used in stormline helm, sparkline helm and plan sparkline helm

Get it !

docker pull gitlab.thalesdigital.io:5005/punch/product/pp-punch/resourcectl