pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Copyright 2020 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.oldalbum</groupId>
  17. <artifactId>oldalbum</artifactId>
  18. <version>2.1.6-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>docker</artifactId>
  21. <name>oldalbum docker image</name>
  22. <properties>
  23. <skip.docker>true</skip.docker>
  24. </properties>
  25. <build>
  26. <plugins>
  27. <plugin>
  28. <groupId>com.spotify</groupId>
  29. <artifactId>docker-maven-plugin</artifactId>
  30. <version>1.2.2</version>
  31. <configuration>
  32. <skipDocker>${skip.docker}</skipDocker>
  33. <imageName>steinarb/oldalbum</imageName>
  34. <baseImage>apache/karaf:4.2.9</baseImage>
  35. <dockerDirectory>docker</dockerDirectory>
  36. </configuration>
  37. <executions>
  38. <execution>
  39. <id>build-image</id>
  40. <phase>package</phase>
  41. <goals>
  42. <goal>build</goal>
  43. </goals>
  44. </execution>
  45. </executions>
  46. </plugin>
  47. </plugins>
  48. </build>
  49. <profiles>
  50. <profile>
  51. <id>enable-docker-on-linux</id>
  52. <properties>
  53. <skip.docker>false</skip.docker>
  54. </properties>
  55. <activation>
  56. <file>
  57. <exists>/var/run/docker.pid</exists>
  58. </file>
  59. </activation>
  60. </profile>
  61. </profiles>
  62. </project>