Skip to content

Can't use %%BALENA_ARCH%% to inform --platform in FROM directive in Dockerfiles as they are incorrect, according to DockerHub #24

@MatthewCroughan

Description

@MatthewCroughan

Simply put, the docker hub wants armv7 but the variable %%BALENA_ARCH%% returns armv7hf. Without specifying a build arg via the Balena CLI, this isn't possible to change. This is useless considering the templating language already kind of implements what we would be doing with the balena cli, allowing us to make Dockerfile.raspberrypi3 and being able to specify --platform=linux/armv7 in it.

This issue relates to #6 #21 and balena-io/balena-cli#1508 heavily, as a resolution of 1508 would remove this problem, or supporting Docker Buildkit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions