You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Craig Condit (Jira)" <ji...@apache.org> on 2024/09/06 14:57:00 UTC
[jira] [Resolved] (YUNIKORN-2799) Fix Dockerfile warnings
[ https://issues.apache.org/jira/browse/YUNIKORN-2799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Craig Condit resolved YUNIKORN-2799.
------------------------------------
Fix Version/s: 1.6.0
Target Version: 1.6.0
Resolution: Fixed
Merged both PRs to master.
> Fix Dockerfile warnings
> -----------------------
>
> Key: YUNIKORN-2799
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2799
> Project: Apache YuniKorn
> Issue Type: Bug
> Reporter: Hsien-Cheng(Ryan) Huang
> Assignee: Hsien-Cheng(Ryan) Huang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.6.0
>
>
> 1 warning found:
> - RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior (line 17)
> Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior
> More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/
> Dockerfile:17
> --------------------
> 15 | # See the License for the specific language governing permissions and
> 16 | # limitations under the License.
> 17 | >>> FROM --platform=$TARGETPLATFORM scratch
> 18 | COPY --chown=0:0 LICENSE NOTICE third-party-licenses.md yunikorn-scheduler /
> 19 | USER 4444:4444
> --------------------
> from docker version 27.1.1
> suggested change: remove `--platform=$TARGETPLATFORM` in dockerfile
> ref: https://docs.docker.com/reference/build-checks/redundant-target-platform/#examples
> change:
> 1. shim: RedundantTargetPlatform
> 2. web:
> - RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior (line 32)
> - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 36)
> - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 20)
> - InvalidDefaultArgInFrom: Default value for ARG node:${NODE_VERSION}-alpine results in empty or invalid base image name (line 20)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org