Skip to content

Commit

Permalink
Add docker-prune.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
famod committed Dec 19, 2020
1 parent 9647038 commit a3a47dc
Show file tree
Hide file tree
Showing 31 changed files with 55 additions and 29 deletions.
9 changes: 9 additions & 0 deletions .github/docker-prune.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@echo off

rem See remarks in docker-prune.sh
if "%GITHUB_ACTIONS%"== "true" (
docker container prune -f || exit /b
docker image prune -f || exit /b
docker network prune -f || exit /b
docker volume prune -f || exit /b
)
17 changes: 17 additions & 0 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
<scala.version>2.12.8</scala.version>
<scala-plugin.version>4.1.1</scala-plugin.version>

<!-- version.* properties are defined in jboss-parent and are overridden/updated here: -->
<version.enforcer.plugin>3.0.0-M3</version.enforcer.plugin>
<version.surefire.plugin>3.0.0-M5</version.surefire.plugin>
<version.exec.plugin>3.0.0</version.exec.plugin>
<failsafe-plugin.version>${version.surefire.plugin}</failsafe-plugin.version>

<!-- These properties are needed in order for them to be resolvable by the documentation -->
Expand Down Expand Up @@ -126,6 +128,9 @@

<!-- platform properties -->
<platform.quarkus.native.builder-image>quay.io/quarkus/ubi-quarkus-native-image:20.2.0-java11</platform.quarkus.native.builder-image>

<script.extension>sh</script.extension>
<docker-prune.location>${maven.multiModuleProjectDirectory}/.github/docker-prune.${script.extension}</docker-prune.location>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -970,5 +975,17 @@
</build>
</profile>

<profile>
<id>Windows</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<properties>
<script.extension>bat</script.extension>
</properties>
</profile>

</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion extensions/keycloak-authorization/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion extensions/oidc/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion extensions/reactive-mysql-client/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion extensions/reactive-pg-client/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/amazon-services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/elasticsearch-rest-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/hibernate-reactive-db2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/hibernate-reactive-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/hibernate-reactive-panache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/hibernate-reactive-postgresql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/jpa-db2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/jpa-mariadb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/jpa-mssql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/jpa-mysql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/jpa-postgresql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/keycloak-authorization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/neo4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/oidc-code-flow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/oidc-tenancy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/oidc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/reactive-db2-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/reactive-mysql-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/reactive-pg-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/redis-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<goal>exec</goal>
</goals>
<configuration>
<executable>${basedir}/../../.github/docker-prune.sh</executable>
<executable>${docker-prune.location}</executable>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit a3a47dc

Please sign in to comment.