Skip to content

Commit

Permalink
Changed Dockerfile; scan step to attach workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
karicordes committed Mar 12, 2024
1 parent b7c0efd commit ca31054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: "Create and start all services from the docker-compose configuration"
command: |
cp example/src/main/resources/application.properties.example ./example/src/main/resources/application.properties
mkdir jacocoJars
mkdir -p jacocoJars
curl -L -o ./jacocoJars/jacocoagent.jar "https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar"
curl -L -o ./jacocoJars/jacococli.jar "https://repo1.maven.org/maven2/org/jacoco/org.jacoco.cli/0.8.7/org.jacoco.cli-0.8.7-nodeps.jar"
docker-compose up --build -d
Expand Down Expand Up @@ -60,7 +60,8 @@ jobs:
executor: openjdk_executor
working_directory: /home/circleci/mms
steps:
- checkout
- attach_workspace:
at: ~/
- run:
name: Build classes to scan
command: |
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ RUN ./gradlew --no-daemon bootJar --warning-mode all

RUN find . -type f -name example-*.jar -not -iname '*javadoc*' -not -iname '*sources*' -exec cp '{}' '/app.jar' ';'
ENV JDK_JAVA_OPTIONS "-XX:MaxRAMPercentage=90.0"
COPY jacocoJars/jacocoagent.jar ./jacocoagent.jar
ENTRYPOINT ["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-javaagent:jacocoJars/jacocoagent.jar=destfile=jacocoOutput/jacoco-it.exec,output=file", "-jar", "/app.jar"]
EXPOSE 8080

0 comments on commit ca31054

Please sign in to comment.