Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonArp committed Jan 14, 2024
1 parent fcc1101 commit b930e89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ ENV METRICS_PORTAL_CONFIG="-Dconfig.resource=portal.application.conf"
ENV JAVA_OPTS="\
--add-opens java.base/java.nio=ALL-UNNAMED \
--add-opens java.base/sun.nio.ch=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/opt/metrics-portal/logs/metrics-portal.oom.hprof \
-Xlog:gc*:file=/opt/metrics-portal/logs/metrics-portal.gc.log:none:filecount=5,filesize=10M \
Expand All @@ -66,7 +67,7 @@ ENV APP_OPTS="/opt/metrics-portal"
ENV ADDITIONAL_APP_OPTS=""

# Build
RUN apt update && apt install -y gosu chromium-browser && rm -rf /var/lib/apt/lists/*
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y gosu chromium-browser && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/metrics-portal/lib/ext && \
mkdir -p /opt/metrics-portal/config && \
mkdir -p /opt/metrics-portal/logs
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,18 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<argLine>@{argLine} --add-opens=java.base/java.lang=ALL-UNNAMED -Xms512m -ea -Duser.timezone="UTC"</argLine>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit b930e89

Please sign in to comment.