Preview:
FROM centos:stream9
MAINTAINER GMC2 GmbH <support@gmc2.de>

RUN yum -y install libstdc++ libstdc++.i686 motif libXm.so.4 libXtst
RUN yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel

ENV JAVA_HOME="/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.362.b09-4.el9.x86_64"

# APP
RUN mkdir /app
COPY cognos /app/cognos

# Make sure the script is executable (if it's not already)
RUN chmod +x /app/cognos/tm1_64/bin64/startup_tm1s.sh

ENV TM1_PATH="/app/cognos/tm1_64/bin64"


# Specify the script and its parameter as the final command to run when the container starts
ENTRYPOINT ["sh", "/app/cognos/tm1_64/bin64/startup_tm1s.sh", "/app/cognos/tm1_64/samples/tm1/24Retail"]
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter