Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

How to add image label when dockerfile maven build #242

Open
dragon9783 opened this issue Oct 29, 2018 · 2 comments
Open

How to add image label when dockerfile maven build #242

dragon9783 opened this issue Oct 29, 2018 · 2 comments
Labels
enhancement help wanted pinned exempt from being marked as stale

Comments

@dragon9783
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST

Description

[Add feature/bug description here]
When build image, how to add image label, like docker build --label xxxx

How to reproduce

[Add steps on how to reproduce this issue]

What do you expect

[Describe what do you expect to happen]

What happened instead

[Describe the actual results]

Software:

  • docker version: [Add the output of docker version here, both client and server]
  • Spotify's dockerfile-maven version: [Add dockerfile-maven version here]

Full backtrace

[Paste full backtrace here]
@mattnworb
Copy link
Member

I don't think this exists at all in the plugin, but we'd be happy to accept any pull requests that add it.

@davidxia davidxia added the pinned exempt from being marked as stale label Nov 11, 2018
@thibgc
Copy link

thibgc commented Apr 12, 2019

We'd like a feature like that :-)

Currently we work around it by passing build arguments that are then used as the values of LABEL directives in the Dockerfile. (But there is a bug with build arguments containing spaces: #286)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement help wanted pinned exempt from being marked as stale
Projects
None yet
Development

No branches or pull requests

4 participants