lhotari opened a new pull request, #23337:
URL: https://github.com/apache/pulsar/pull/23337

   ### Motivation
   
   building a docker image with this command will fail. 
   ```
   mvn package -Pdocker,-main -am -pl docker/pulsar -DskipTests
   ```
   
   error message is
   ```
   [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.45.0:build 
(default) on project pulsar-docker-image: Execution default of goal 
io.fabric8:docker-maven-plugin:0.45.0:build failed: Given Docker name 
'apachepulsar/pulsar:4.0.0-SNAPSHOT-${git.commit.id.abbrev}' is invalid:
   [ERROR]    * tag part '4.0.0-SNAPSHOT-${git.commit.id.abbrev}' doesn't match 
allowed pattern '^[\w][\w.-]{0,127}$'
   [ERROR] See http://bit.ly/docker_image_fmt for more details
   ```
   
   ### Modifications
   
   Fix the problem by revisiting the `git-commit-id-plugin` configuration in 
`docker/pom.xml` file.
   Removing `<runOnlyOnce>true</runOnlyOnce>` fixes the problem.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to