question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fabric8 MVN Plugin 3.5.41: Allow @sha256 digest for tags in FROM

See original GitHub issue

Hello there!

Today I ran into an error in Jenkins, using the fabric8 maven plugin, that seems to exist for quite some time. It got already reported in docker-maven-plugin Issue #541 but it looks like it never got fixed (Issue still open).

As the headline states the fabric8 maven plugin in version 3.5.41 is not able to process @sha256 digests.

In the docker-maven-plugin the responsible class seems to be ImageName.java. More likely the regex Patterns at the end of the file.

Does a solution to this problem already exist or exist plans to eliminate the problem?

If so, please give notice, that would be much appreciated

Cheers, Marcus

Info

  • f-m-p version : 3.5.41
  • Jenkins Maven Integration Plugin: 3.1.2
  • Kubernetes / OpenShift setup and version : >=3.7
  • If it’s a bug, how to reproduce : Start a Maven build with fabric8 maven plugin to build a docker image that holds a sha256 digest in the FROM clause in Dockerfile Error Message:
[main] ERROR org.apache.maven.cli.MavenCli - Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.41:build (default) on project ###-###-docker-image: Failed to execute the build: Error while trying to build the image: Given Docker name '###########/solr:7.4-alpine@sha256:dd81436461637eac88c4a2ebfb59af3cffd3d5b928fd68315d8a1a175243242c' is invalid:
[main] ERROR org.apache.maven.cli.MavenCli - * image part 'solr:7.4-alpine@sha256' doesn't match allowed pattern '[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?' ''

Note: ### means anonymization of information

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:30 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rohanKanojiacommented, Apr 11, 2019

We just need to update to docker-maven-plugin 0.29.0 in order to fix this issue.

1reaction
rohanKanojiacommented, Mar 1, 2019

@mmkonrad : ah, apologies for the inconvenience caused. I missed this somehow 😦 . Will try to look into it as soon as I get time

Read more comments on GitHub >

github_iconTop Results From Across the Web

fabric8io/fabric8-maven-plugin
This plugin focus on two tasks: Building Docker images and creating Kubernetes and OpenShift resource descriptors. It can be configured very ...
Read more >
How to tag an image with fabric8-maven-plugin?
However, the maven plugin always uses the project's group/artifact id for deriving the image tag.
Read more >
fabric8 - OSCHINA - 中文开源技术交流社区
使用fabric8-maven-plugin插件的错误处理(No plugin found for prefix 'fabric8'). https://my.oschina.net/u/4198380/blog/4730113.
Read more >
How to use Fabric8 maven docker plugin (Introduction)
entryPoint tag as the name implies runs when the container starts to run the spring boot app as it is done before on...
Read more >
Publishing ESB artifacts to a distant Docker registry - 8.0
... F8> 0.1.0: digest: sha256:a63c7e4672efc1632fd696eb24fe0a7dba89c0b5697b96b370f98546c6e2108e size: 1993 ... [INFO] --- fabric8-maven-plugin:4.0.0:push ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found