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.

Simple mode docker.tags property is ignored

See original GitHub issue

Description

docker.tags are ignored in simple mode

Info

  • d-m-p version : 0.33.0
  • Maven version (mvn -v) : 3.6.3

  • Docker version : Docker version 18.09.3, build 774a1f4eee
  • Reproduce : add additional tag with -Ddocker.tags.idx=foo

I’ve overriden default name with tag A, but I need an additional tag B, which is ignored:

<properties>
    <docker.name>${project.artifactId}:${project.version}</docker.name>
    <docker.tags.0>foo</docker.tags.0>
</properties>

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
rohanKanojiacommented, Mar 8, 2021

@manderson23 : cool, thanks a lot. I’ll try to reproduce

0reactions
ls-urs-kellercommented, Nov 24, 2021

Using plugin version 0.33.0 with maven 3.6.0. Tried both openjdk8 and jdk11 (adopt/hotspot).

I couldn’t make the docker.tags.0 property work in any possible way…

  • I tried with maven profiles (because we already had them).
  • Then I removed them in case that was the issue, didn’t work.
  • I tried adding the property inside pom.xml while keeping/ditching the normal <tags> inside the plugin config, neither worked.
  • I tried without the property inside pom.xml, but by providing it from command like -Ddocker.tags.0=foo, again while keeping/ditching the normal <tags> inside the plugin config, neither worked again.

From where I’m standing, this feature simply does not exist…

I wonder if setting -Ddocker.imagePropertyConfiguration=override does the trick …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dockerfile reference - Docker Documentation
Dockerfiles use a simple DSL which allows you to automate the steps you would normally ... and instructions (such as RUN ) are...
Read more >
docker-maven-plugin/_property_configuration.adoc at master
By default, property based configuration uses only properties, ignoring any <build> and <run> sections. To combine values from both sources, use the property...
Read more >
fabric8io/docker-maven-plugin
See Simple Dockerfile build for details of this zero XML configuration mode. Images that are built with this plugin can be pushed to...
Read more >
10 best practices to containerize Node.js web applications ...
A simple Node.js Docker image. Most blog articles we've seen start and finish along the lines of the following basic Dockerfile instructions for ......
Read more >
Docker@2 - Docker v2 task - Microsoft Learn
Build or push Docker images, login or logout, start or stop containers, ... for the command parameter, the arguments property is ignored.
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