Issue
We are trying to run the unit tests just for DSTU3 in a docker container (using builtKit for .M2 caching purposes).
But we keep seeing 4 tests failing:
OS: Docker container based on hapiproject/hapi:base
Browser NA
Additional context
We are building the build image with this command from TFS (our CI server):
docker build --tag ph3-dev/hapi-fhir-build:4.3.0-238348-Quick-HAPI-Build.1 --target build-hapi -m 4g .
Here's the docker file:
FROM hapiproject/hapi:base as build-hapi
ENV MAVEN_OPTS="-Xmx2048M -Xss128M -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=1024M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
RUN mkdir -p /tmp/hapi-fhir/
COPY ./hapi-fhir /tmp/hapi-fhir
WORKDIR /tmp/hapi-fhir/
RUN --mount=type=cache,target=/root/.m2 /tmp/apache-maven-3.6.2/bin/mvn clean
RUN --mount=type=cache,target=/root/.m2 /tmp/apache-maven-3.6.2/bin/mvn dependency:resolve
RUN --mount=type=cache,target=/root/.m2 /tmp/apache-maven-3.6.2/bin/mvn -P STU3SERVER,NOPARALLEL,NOUNITTESTS install
WORKDIR /tmp
RUN mkdir -p /tmp/hapi-fhir-jpaserver-starter
COPY ./pom.xml /tmp/hapi-fhir-jpaserver-starter
COPY ./src /tmp/hapi-fhir-jpaserver-starter/src
WORKDIR /tmp/hapi-fhir-jpaserver-starter
RUN --mount=type=cache,target=/root/.m2 /tmp/apache-maven-3.6.2/bin/mvn install -DskipTests
FROM tomcat:9-jre11
RUN mkdir -p /data/hapi/lucenefiles && chmod 775 /data/hapi/lucenefiles
COPY --from=build-hapi /tmp/hapi-fhir-jpaserver-starter/target/*.war /usr/local/tomcat/webapps/
EXPOSE 8080
CMD ["catalina.sh", "run"]
Issue We are trying to run the unit tests just for DSTU3 in a docker container (using builtKit for .M2 caching purposes). But we keep seeing 4 tests failing:
Environment:
Additional context
We are building the build image with this command from TFS (our CI server): docker build --tag ph3-dev/hapi-fhir-build:4.3.0-238348-Quick-HAPI-Build.1 --target build-hapi -m 4g .
Here's the docker file:
Here's how the configure the STU3SERVER profile:
We are running the tests with this command:
What are we missing?
Thanks in advance.