pom.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2020-2024 Steinar Bang -->
  3. <!-- -->
  4. <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
  5. <!-- you may not use this file except in compliance with the License. -->
  6. <!-- You may obtain a copy of the License at -->
  7. <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
  8. <!-- Unless required by applicable law or agreed to in writing, -->
  9. <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
  10. <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
  11. <!-- See the License for the specific language governing permissions and limitations -->
  12. <!-- under the License. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xml:space="preserve">
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>no.priv.bang.sonar.sonar-collector</groupId>
  17. <artifactId>sonar-collector</artifactId>
  18. <version>1.5.23-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>docker</artifactId>
  21. <name>sonar-collector docker image</name>
  22. <properties>
  23. <sonar-collector.release.version>1.5.21</sonar-collector.release.version>
  24. <skip.docker>true</skip.docker>
  25. </properties>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>io.fabric8</groupId>
  30. <artifactId>docker-maven-plugin</artifactId>
  31. <version>0.43.4</version>
  32. <configuration>
  33. <outputDirectory>target/docker-build</outputDirectory>
  34. <useColor>false</useColor>
  35. <verbose>all</verbose>
  36. <images>
  37. <image>
  38. <name>steinarb/sonar-collector:${sonar-collector.release.version}</name>
  39. <build>
  40. <dockerFile>${project.basedir}/docker/Dockerfile</dockerFile>
  41. <contextDir>${project.basedir}/docker</contextDir>
  42. </build>
  43. </image>
  44. </images>
  45. </configuration>
  46. <executions>
  47. <execution>
  48. <id>default</id>
  49. <goals>
  50. <goal>build</goal>
  51. </goals>
  52. <phase>package</phase>
  53. </execution>
  54. </executions>
  55. </plugin>
  56. </plugins>
  57. </build>
  58. <profiles>
  59. <profile>
  60. <id>enable-docker-on-linux</id>
  61. <properties>
  62. <skip.docker>false</skip.docker>
  63. </properties>
  64. <activation>
  65. <file>
  66. <exists>/var/run/docker.pid</exists>
  67. </file>
  68. </activation>
  69. </profile>
  70. </profiles>
  71. </project>