[
https://issues.apache.org/jira/browse/ARTEMIS-5360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vilius Šumskas updated ARTEMIS-5360:
------------------------------------
Description:
{{ENV}} directive in the various Docker files is using the legacy syntax, i.e.:
{noformat}
ENV <key> <value>{noformat}
This produces warnings on newer Docker Engine.
4 warnings found (use docker --debug to expand):
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
key value" format (line 28)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
key value" format (line 29)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
key value" format (line 26)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
key value" format (line 27)
The proper syntax is:
{noformat}
ENV <key>=<value>{noformat}
See the [Docker
documentation|https://docs.docker.com/reference/dockerfile/#env] for more
details.
Also, the {{chown}} syntax is using {{.}} instead of {{: which produces this
warning:}}
#9 [5/7] RUN mkdir /var/lib/artemis-instance && chown -R artemis.artemis
/var/lib/artemis-instance
#9 0.148 chown: warning: '.' should be ':': ‘artemis.artemis’
was:
{{ENV}} directive in the various Docker files is using the legacy syntax, i.e.:
{noformat}
ENV <key> <value>{noformat}
This produces warnings on newer Docker Engine. The proper syntax is:
{noformat}
ENV <key>=<value>{noformat}
See the [Docker
documentation|https://docs.docker.com/reference/dockerfile/#env] for more
details.
Also, the {{chown}} syntax is using {{.}} instead of {{:}}.
> Syntax issues in Docker files
> -----------------------------
>
> Key: ARTEMIS-5360
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5360
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Reporter: Vilius Šumskas
> Priority: Trivial
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {{ENV}} directive in the various Docker files is using the legacy syntax,
> i.e.:
> {noformat}
> ENV <key> <value>{noformat}
> This produces warnings on newer Docker Engine.
> 4 warnings found (use docker --debug to expand):
> - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
> key value" format (line 28)
> - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
> key value" format (line 29)
> - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
> key value" format (line 26)
> - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV
> key value" format (line 27)
> The proper syntax is:
> {noformat}
> ENV <key>=<value>{noformat}
> See the [Docker
> documentation|https://docs.docker.com/reference/dockerfile/#env] for more
> details.
> Also, the {{chown}} syntax is using {{.}} instead of {{: which produces this
> warning:}}
> #9 [5/7] RUN mkdir /var/lib/artemis-instance && chown -R artemis.artemis
> /var/lib/artemis-instance
> #9 0.148 chown: warning: '.' should be ':': ‘artemis.artemis’
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact