<commit_before>FROM quay.io/democracyworks/clojure-yourkit:lein-2.7.1

RUN mkdir -p /usr/src/{{name}}
WORKDIR /usr/src/{{name}}

COPY profiles.clj /usr/src/{{name}}/
COPY project.clj /usr/src/{{name}}/

ARG env=production
ARG DATOMIC_USERNAME
ARG DATOMIC_PASSWORD

RUN lein with-profiles $env,datomic-repo deps

COPY . /usr/src/{{name}}

RUN lein with-profiles $env,datomic-repo,test test
RUN lein with-profiles $env,datomic-repo uberjar

CMD java ${JVM_OPTS:--XX:+UseG1GC} \
    -Ddatomic.objectCacheMax=${DATOMIC_OBJ_CACHE_MAX:-256m} \
    -javaagent:resources/jars/com.newrelic.agent.java/newrelic-agent.jar \
    $YOURKIT_AGENT_OPTION \
    -jar target/{{name}}.jar<commit_msg>Replace Datomic cache limit with CGroupMemory options<commit_after>FROM quay.io/democracyworks/clojure-yourkit:lein-2.7.1

RUN mkdir -p /usr/src/{{name}}
WORKDIR /usr/src/{{name}}

COPY profiles.clj /usr/src/{{name}}/
COPY project.clj /usr/src/{{name}}/

ARG env=production
ARG DATOMIC_USERNAME
ARG DATOMIC_PASSWORD

RUN lein with-profiles $env,datomic-repo deps

COPY . /usr/src/{{name}}

RUN lein with-profiles $env,datomic-repo,test test
RUN lein with-profiles $env,datomic-repo uberjar

CMD java ${JVM_OPTS:--XX:+UseG1GC} \
    -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap \
    -XX:MaxRAMFraction=1 \
    -javaagent:resources/jars/com.newrelic.agent.java/newrelic-agent.jar \
    $YOURKIT_AGENT_OPTION \
    -jar target/{{name}}.jar
{'fraction_non_alphanumeric': 0.1459346768589298, 'fraction_numerical': 0.008339124391938846, 'mean_word_length': 4.353159851301116, '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': '1362462', 'n_tokens_mistral': 594, 'n_tokens_neox': 568, 'n_words': 97}