Skip to content

Support for custom resource in fly execute #318

Closed

Description

@tom-meyer

We just came across an issue when trying to fly execute where one of the inputs is a user-defined resource_type. Concourse gives us this for the output of the get for our custom git-lfs resource:

no workers satisfying: resource type 'git-lfs'

available workers:
  - platform 'linux'
  - platform 'linux'
  - platform 'linux'
  - platform 'linux'

Our custom resource is defined like this:

resource_types:
- name: git-lfs
  type: docker-image
  source:
    repository: "docker.ci.eng.pivotal.io:443/git-lfs-resource"

Activity

  1. concourse-bot commented on Mar 16, 2016

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #140235507 Support for custom resource in fly execute
    • #115815629 Support for custom resource types in fly execute

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. muv commented on May 19, 2016

    @muv

    +1 just got the same

  3. benmoss commented on Jun 1, 2016

    @benmoss

    Yep, not clear how to make this work since this is specified in the pipeline.

  4. mtekel commented on Jul 7, 2016

    @mtekel

    +1

  5. combor commented on Jul 8, 2016

    @combor
    Contributor

    +1

  6. 17 remaining items

  7. added this to the milestone on May 11, 2017
  8. vito commented on May 11, 2017

    @vito
    Contributor

    Update on previous comment: turns out you can already submit a build with a set of versioned resource types, though it works a bit differently: you have to add the whole set of them to each get, put, or task in the plan.

    So, all we need now is an endpoint to get that set of resource types from the API. Something like:

    https://ci.concourse.ci/api/v1/teams/main/pipelines/main/resource_types
    

    This would return VersionedResourceTypes, which is an array of...versioned resource types.

    fly execute would then make that API call and tack them on to the task, get, and put steps in its build plan.

    Not sure about UX for this. fly execute --resource-types-from <pipeline>? -p for short? (i.e. "execute in the context of this pipeline")

    We could also have -j imply -p <pipeline>, since we know what pipeline the job lives in.

    /cc @talset

  9. removed this from the milestone on Nov 29, 2017
  10. added 2 commits that reference this issue on Apr 13, 2018
  11. xtremerui commented on Apr 13, 2018

    @xtremerui
    Contributor

    Individual PRs are summited to following submodules:

    vmware-archive/atc#263
    vmware-archive/go-concourse#11
    vmware-archive/fly#216
    vmware-archive/testflight#5

    They have to be merged following the above order otherwise compilation would fail. Thx.

  12. xtremerui commented on Jul 27, 2018

    @xtremerui
    Contributor

    The branch has been merged. Closing.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions