| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| <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"> |
| <parent> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>docker-images</artifactId> |
| <version>3.2.0</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>pulsar-docker-image</artifactId> |
| <name>Apache Pulsar :: Docker Images :: Pulsar Latest Version</name> |
| <packaging>pom</packaging> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-server-distribution</artifactId> |
| <version>${project.version}</version> |
| <classifier>bin</classifier> |
| <type>tar.gz</type> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <properties> |
| <UBUNTU_MIRROR>http://archive.ubuntu.com/ubuntu/</UBUNTU_MIRROR> |
| <UBUNTU_SECURITY_MIRROR>http://security.ubuntu.com/ubuntu/</UBUNTU_SECURITY_MIRROR> |
| <IMAGE_JDK_MAJOR_VERSION>17</IMAGE_JDK_MAJOR_VERSION> |
| </properties> |
| |
| <profiles> |
| <profile> |
| <id>git-commit-id-no-git</id> |
| <activation> |
| <file> |
| <missing>${basedir}/../../.git/index</missing> |
| </file> |
| </activation> |
| <properties> |
| <git.commit.id.abbrev>no-git</git.commit.id.abbrev> |
| </properties> |
| </profile> |
| <profile> |
| <id>docker</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>default</id> |
| <phase>package</phase> |
| <goals> |
| <goal>build</goal> |
| <goal>tag</goal> |
| </goals> |
| <configuration> |
| <images> |
| <image> |
| <name>${docker.organization}/pulsar</name> |
| <build> |
| <args> |
| <PULSAR_TARBALL>target/pulsar-server-distribution-${project.version}-bin.tar.gz</PULSAR_TARBALL> |
| <PULSAR_CLIENT_PYTHON_VERSION>${pulsar.client.python.version}</PULSAR_CLIENT_PYTHON_VERSION> |
| <UBUNTU_MIRROR>${UBUNTU_MIRROR}</UBUNTU_MIRROR> |
| <UBUNTU_SECURITY_MIRROR>${UBUNTU_SECURITY_MIRROR}</UBUNTU_SECURITY_MIRROR> |
| <JDK_MAJOR_VERSION>${IMAGE_JDK_MAJOR_VERSION}</JDK_MAJOR_VERSION> |
| </args> |
| <contextDir>${project.basedir}</contextDir> |
| <tags> |
| <tag>latest</tag> |
| <tag>${project.version}-${git.commit.id.abbrev}</tag> |
| </tags> |
| <buildx> |
| <platforms> |
| <platform>${docker.platforms}</platform> |
| </platforms> |
| </buildx> |
| </build> |
| </image> |
| </images> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-tarball</id> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <phase>generate-resources</phase> |
| <configuration> |
| <outputDirectory>${project.build.directory}/</outputDirectory> |
| <includeArtifactIds>pulsar-server-distribution</includeArtifactIds> |
| <excludeTransitive>true</excludeTransitive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>docker-push</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>io.fabric8</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>default</id> |
| <phase>package</phase> |
| <goals> |
| <goal>build</goal> |
| <goal>tag</goal> |
| <goal>push</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| </profiles> |
| </project> |