Skip to content

Allow container { from { withFS } } #3707

Closed as not planned
Closed as not planned

Description

@shykes

Problem

The following query has a surprising and, in my opinion, undesirable result:

query customAlpine($fs: DirectoryID!) {
  container {
    from(address: "alpine:3.16") {
      withFS(id: $fs) {
        id
      }
  }
}
  • Expected behavior: download alpine, replace its root filesystem
  • Actual behavior: download alpine, wipe its contents, and set a new root filesystem

This is causing problem for users. For example see #3673

@kpenfound says:

I want my build artifact to end up on a specific base, so the .From().WithFS() would have to work. Similar to David's feedback, what I'm really looking for is the equivalent of the dockerfile COPY --from

Solution

Change the behavior of Container { withFS } such that it only modifies the container's root filesystem, without modifying anything else in the container content.

See also

#3264

Activity

  1. added
    area/engine
    on Nov 5, 2022
  2. shykes commented on Nov 5, 2022

    @shykes
    ContributorAuthor

    Disregard, this bug report is incorrect, the behavior is in fact the expected one. There was a misunderstanding in #3673

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions