Skip to content

Allow define new resource types from docker images in the pipeline manifest #250

Closed

Description

@keymon

To add new custom resource types, currently it is necessary to redeploy the job groundcrew to change the property groundcrew.additional_resource_types

For the tasks, instead, any new image can be defined in the manifest itself with the key image: ..., so this should not be a difference in terms of security or permissions.

What I propose allow the pipeline definition to specify the docker image for resource directly, without requiring redeploy groundcrew job with bosh in concourse.

This would allow seamless use custom resources in any concourse installation, even in the vanilla concourse-lite, and make the pipelines more portable, as they don't have a dependency on the installed resources but can specify their own resources.

A pair of possible pipeline syntax can be:

  • Per resource definition, adding an image:

    - name: something
      type: my-semver
      image: docker://keymon/semver
      source:
        bucket: {{state_bucket}}
        region_name: {{aws_region}}
        key: build-all-trigger
    
  • Special paragraph for defining resource types:

    resource_types:
    - name: my-semver
      image: docker://keymon/semver
    resources:
    - name: something
      type: my-semver
      source:
        bucket: {{state_bucket}}
        region_name: {{aws_region}}
        key: build-all-trigger
    

Activity

  1. concourse-bot commented on Jan 7, 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:

    • #111232852 I can configure resource types as part of my pipeline config

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

  2. vito commented on Jan 7, 2016

    @vito
    Contributor

    Yep this makes sense; we've been discussing ways of versioning resources themselves, and it may end up being something like this. With the caveat that the resource will also have to say which platform it runs on (i.e. linux/darwin/etc.).

  3. vito commented on Jan 15, 2016

    @vito
    Contributor

    Building on #252, I think this'll look something like:

    resource_types:
    - name: bosh-init-deployment
      image:
        type: docker-image
        source:
          repository: somethirdparty/bosh-init-deployment-resource
    
    resources:
    - name: bosh-director-deployment
      type: bosh-init-deployment
      source: # ...
  4. concourse-bot commented on Feb 23, 2016

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    • #111232852 I can configure resource types as part of my pipeline config

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  5. added a commit that references this issue on Aug 4, 2016
  6. added a commit that references this issue on Mar 6, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions