Alberto Planas Dominguez
9a2419ff77
New service, like kiwi_label_helper, but for Dockerfile. OBS-URL: https://build.opensuse.org/request/show/833745 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-docker_label_helper?expand=0&rev=1
25 lines
679 B
Plaintext
25 lines
679 B
Plaintext
obs-service-docker_label_helper
|
|
===============================
|
|
|
|
This service can be enabled to run during buildtime, when it will edit the
|
|
Dockerfile to expand the PREFIXEDLABEL instruction.
|
|
|
|
Example:
|
|
|
|
```
|
|
FROM opensuse/tumbleweed
|
|
# labelprefix=org.opensuse.nano
|
|
PREFIXEDLABEL org.opencontainers.image.title="Example container"
|
|
PREFIXEDLABEL org.opencontainers.image.description="This contains nano"
|
|
```
|
|
|
|
expands to
|
|
|
|
```
|
|
FROM opensuse/tumbleweed
|
|
LABEL org.opensuse.nano.title="Example container"
|
|
LABEL org.opencontainers.image.title="Example container"
|
|
LABEL org.opensuse.nano.description="This contains nano"
|
|
LABEL org.opencontainers.image.description="This contains nano"
|
|
```
|