[ 
https://issues.apache.org/jira/browse/ARTEMIS-5360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clebert Suconic closed ARTEMIS-5360.
------------------------------------

> 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
>             Fix For: 2.41.0
>
>          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.
> {noformat}
> 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)
> {noformat}
> 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:
> {noformat}
> #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’
> {noformat}



--
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


Reply via email to