<commit_before>FROM learninglayers/base

RUN mkir /usr/local/tomcat/

ADD sss/ /opt/sss/

CMD sed -i "s#SSS_MYSQL_SCHEME#${SSS_MYSQL_SCHEME}#g" /opt/sss/mysql/sss.schema.sql && \
sed -i "s#SSS_MYSQL_HOST#${SSS_MYSQL_HOST}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_PORT#${SSS_MYSQL_PORT}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_USERNAME#${SSS_MYSQL_USERNAME}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_PASSWORD#${SSS_MYSQL_PASSWORD}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_SCHEME#${SSS_MYSQL_SCHEME}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_AUTH_TYPE#${SSS_AUTH_TYPE}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_USER#${SSS_TETHYS_USER}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_PASSWORD#${SSS_TETHYS_PASSWORD}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_LAS_USER#${SSS_TETHYS_LAS_USER}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_LAS_PASSWORD#${SSS_TETHYS_LAS_PASSWORD}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_OIDC_CONF_URI#${SSS_TETHYS_OIDC_CONF_URI}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_OIDC_USER_END_POINT_URI#${SSS_TETHYS_OIDC_USER_END_POINT_URI}#g" /opt/sss/sss.conf.yaml &&
sed -i "s#SSS_HOST#${SSS_HOST}#g" /opt/sss/sss.adapter.rest.v2.conf.yaml && \
sed -i "s#SSS_PORT#${SSS_PORT}#g" /opt/sss/sss.adapter.rest.v2.conf.yaml && \
mv /opt/sss/sss.adapter.rest.v2.conf.yaml /usr/local/tomcat/conf/ && \
mv /opt/sss/sss.adapter.rest.v2.war /usr/local/tomcat/webapps/ && \

VOLUME ["/opt/sss/"]<commit_msg>referring to tomcats data volume via environment variable<commit_after>FROM learninglayers/base

RUN mkir $TOMCAT_HOME

ADD sss/ /opt/sss/

CMD sed -i "s#SSS_MYSQL_SCHEME#${SSS_MYSQL_SCHEME}#g" /opt/sss/mysql/sss.schema.sql && \
sed -i "s#SSS_MYSQL_HOST#${SSS_MYSQL_HOST}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_PORT#${SSS_MYSQL_PORT}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_USERNAME#${SSS_MYSQL_USERNAME}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_PASSWORD#${SSS_MYSQL_PASSWORD}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_MYSQL_SCHEME#${SSS_MYSQL_SCHEME}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_AUTH_TYPE#${SSS_AUTH_TYPE}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_USER#${SSS_TETHYS_USER}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_PASSWORD#${SSS_TETHYS_PASSWORD}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_LAS_USER#${SSS_TETHYS_LAS_USER}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_LAS_PASSWORD#${SSS_TETHYS_LAS_PASSWORD}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_OIDC_CONF_URI#${SSS_TETHYS_OIDC_CONF_URI}#g" /opt/sss/sss.conf.yaml && \
sed -i "s#SSS_TETHYS_OIDC_USER_END_POINT_URI#${SSS_TETHYS_OIDC_USER_END_POINT_URI}#g" /opt/sss/sss.conf.yaml &&
sed -i "s#SSS_HOST#${SSS_HOST}#g" /opt/sss/sss.adapter.rest.v2.conf.yaml && \
sed -i "s#SSS_PORT#${SSS_PORT}#g" /opt/sss/sss.adapter.rest.v2.conf.yaml && \
mv /opt/sss/sss.adapter.rest.v2.conf.yaml /usr/local/tomcat/conf/ && \
mv /opt/sss/sss.adapter.rest.v2.war /usr/local/tomcat/webapps/ && \

VOLUME ["/opt/sss/"]
{'fraction_non_alphanumeric': 0.2022875816993464, 'fraction_numerical': 0.00261437908496732, 'mean_word_length': 4.775471698113208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4969101', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1627, 'n_words': 160}