Skip to content

Conversation

@grooverdan
Copy link

Closes: #1368

progress towards #1590

@rh-atomic-bot
Copy link
Collaborator

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@rhatdan rhatdan requested a review from nalind October 10, 2019 10:29
}
args.setArch(p)
} else {
args.setArch(platforms.DefaultSpec())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not us p? Remove the else {}

args.setArch(p)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh, of course. Fixing.

av := strings.SplitN(arg, "=", 2)
if len(av) > 1 {
args[av[0]] = av[1]
if av[0] == "TARGETPLATFORM" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is TARGETPLATFORM a constant defined somewhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhatdan I'm thinking this PR is dependent on openshift/imagebuilder#142. @ grooverdan can you confirm? We may need to hold this PR until the imagebuilder gets merged/vendored.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defined in https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope.

Quite right, should wait for dependent PR openshift/imagebuilder#142. I even checked it works with the version there rather than the slightly different version in this PR.

I'll rebase/revendor/retest on the merge/amendment of openshift/imagebuilder#142.

@TomSweeneyRedHat
Copy link
Member

bot, add author to whitelist

@grooverdan grooverdan force-pushed the args-target-platform branch 2 times, most recently from 09e58e4 to 67845fa Compare October 11, 2019 04:15
@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably #1933) made this pull request unmergeable. Please resolve the merge conflicts.

@rhatdan
Copy link
Member

rhatdan commented Oct 21, 2019

@grooverdan Needs a rebase.

@grooverdan
Copy link
Author

How about I do a rebase after openshift/imagebuilder#142 is merged and then I'll include its changes in vendor too?

@TomSweeneyRedHat
Copy link
Member

@grooverdan That would be some serious awesome-sauce. TYVM!

@grooverdan
Copy link
Author

Re-based to master:

re-vendored after containers/image#753 (probably incorrectly looking at vendor CI result).

Apologies - I seem to forgot to upstream this bit containers/image#753

@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably 92ff215) made this pull request unmergeable. Please resolve the merge conflicts.

@shawnallen85
Copy link

Any update on this? Would love to get closer toward #1590 . Thanks!!

@grooverdan
Copy link
Author

waiting on a variant implementation to land (containers/image#786) and then I can rebase to use it.

s-zeid added a commit to s-zeid/elements that referenced this pull request May 12, 2020
…or armv7l

On armv7l, singularity was apparently downloading images for the v5
architecture variant instead of v7.

Currently, `skopeo copy` is used to copy the image into local containers
storage (/var/lib/containers/storage) for caching purposes, then it is
copied again to `{STAGING_DIR}/docker-oci`.  This increases storage
requirements at build time and instead, the image should be copied
to `oci:{new elements cache directory}/oci:{REF}` and the temporary
definition file should have `From: {cache}/oci:{REF}`.

Migration to buildah now depends on
<containers/buildah#1903 (comment)>
(but preferably a dedicated --variant option).
@rhatdan
Copy link
Member

rhatdan commented Oct 28, 2020

@grooverdan This seems to have gotten lost. Containers/image has the feature you were waiting on, are you interested in picking this up? Should we add this functionality or should I just close it?

@TomSweeneyRedHat
Copy link
Member

@rhatdan, did your recent commit take care of all or at least some of this?

@rhatdan
Copy link
Member

rhatdan commented Feb 11, 2021

Yes buildah currently handles this.

Thanks @grooverdan

@rhatdan rhatdan closed this Feb 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

buildah --platform to take os/arch format and set default ARGS {BUILD|TARGET}{PLATFORM|OS|ARCH|VARIANT}

5 participants