Skip to content

Inconsistent checksum validation formatting amongst Dockerfiles #2855

Closed

Description

@mthalman

There is an inconsistency amongst the Dockfiles wrt to how the string value is formatted for checksum validation.

In Alpine, the formatting requires two spaces between the SHA value and the file name:

&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \

In Debian/Ubuntu, the sha512sum tool allows for one or two spaces but the Dockerfiles use only one space:

&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \

To maintain as much consistency as we can amongst the Dockerfiles, we should consider using the two-space formatting across all the Dockerfiles if the tool supports it.

Activity

  1. ghost added
    area-dockerfiles
    on Jun 2, 2021
  2. MichaelSimons commented on Jun 9, 2021

    @MichaelSimons
    Member

    [Triage] it would be nice to be consistent so that comparing Dockerfiles and templates is easier. For this reason, we feel using two spaces everywhere would be best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-dockerfiles

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions