You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Concourse extension doesn't know about the registry-image #380
since a while the Concourse docker-image resource has an alternative, the drop-in replacement registry-image resource. Development on docker-image has stopped.
The Concourse documentation unfortunately is partially out of date, but to show that registry-image is the preferred type to use I can quote the Concourse introduction documentation:
Everything in Concourse runs in a container. Instead of modifying workers to install build tools, Tasks describe their own container image (typically using Docker images via the registry-image resource).
As a quickfix I can add 'registry-image' as a known 'built-in' resource type to our editor without any Schema information. This will get rid of the error but will not provide any kind of completions or validation for stuff in the 'source' section of the resource definition or in the get and put params of resources of this type.
But it doesn't say which resources are 'builtin'. I am guessing it might be the resources that are listed as 'maintained by @concourse'. Though that's really just a guess.
Do a quick short term fix now: add registry-image as a 'unkown schema' built-in resource type.
This can still be included in the next release which is supposed to happen next week sometime.
After the release I will work on fleshing out a proper schema for the new resource type.
To know the list of all built-in resource types, one can query the ATC with fly -t ci workers -d.
The returned resource types are: bosh-io-release, bosh-io-stemcell, cf, docker-image, git, github-release, hg, mock, pool, registry-image, s3, semver, time, tracker
I've now also pushed some changes to flesh out the Schema for source options as well as get and put parameters. There are actually quite some differences between the old docker-image and the new repository-image. Perhaps the biggest difference is that the new repository-image has no support for building images (i.e. from a Dockerfile).
@marco-m If you have time to test and take it for a spin, that would be most welcome. As allways you can download a .vsix file of the snapshot builds from this page:
PS: I mentioned that there would be release this week. However the release has been pushed back a bit till the beginning of november (which is why I decided I could still work in this bigger schema change as their's still enough time to test it before releasing it to the masses :-)
There are actually quite some differences between the old docker-image and the new repository-image. Perhaps the biggest difference is that the new repository-image has no support for building images (i.e. from a Dockerfile).
You are right. I completely forgot about it.
@marco-m If you have time to test and take it for a spin, that would be most welcome.
I will. Please ping me back if you don't hear from me in a few days.
Also thanks again for reporting the issue as well as for the pointers to the relevant docs.
@kdvolder I tested the nightly build. It correctly handles the new registry-image. From my point of view this ticket can be closed as Done, thanks again.
On the other hand I found two other aspects that need to be updated, I will open a separate ticket.
Activity
kdvolder commentedon Oct 17, 2019
I would like to update this in our editor, without an explanation in the doc about this I'm not sure what changes are actually required.
Do I understand correctly that 'registry-image' is a new built-in resource type?
Where is this documented? I was trying to find where they currently list all the built-in resource types, but can't seem to find that in the current concourse documentation. (Places I looked: https://concourse-ci.org/resource-types.html and https://concourse-ci.org/resources.html)
As a quickfix I can add 'registry-image' as a known 'built-in' resource type to our editor without any Schema information. This will get rid of the error but will not provide any kind of completions or validation for stuff in the 'source' section of the resource definition or in the get and put params of resources of this type.
kdvolder commentedon Oct 17, 2019
I found some kind of a list here:
https://github.com/concourse/concourse/wiki/Resource-Types
But it doesn't say which resources are 'builtin'. I am guessing it might be the resources that are listed as 'maintained by @concourse'. Though that's really just a guess.
kdvolder commentedon Oct 17, 2019
Okay, here's what I will do:
Do a quick short term fix now: add
registry-imageas a 'unkown schema' built-in resource type.This can still be included in the next release which is supposed to happen next week sometime.
After the release I will work on fleshing out a proper schema for the new resource type.
Minimal support for 'registry-image' resource type
marco-m commentedon Oct 17, 2019
@kdvolder as usual, you are very reactive, thanks!
Yes,
registry-imageis added to the built-in resource types. It is a drop-in replacement fordocker-image, so the schema should be the same. I think you can get the information you are looking for regarding the schema from the repo README: https://github.com/concourse/registry-image-resource.To know the list of all built-in resource types, one can query the ATC with
fly -t ci workers -d.The returned resource types are:
bosh-io-release, bosh-io-stemcell, cf, docker-image, git, github-release, hg, mock, pool, registry-image, s3, semver, time, trackerkdvolder commentedon Oct 21, 2019
I've now also pushed some changes to flesh out the Schema for
sourceoptions as well asgetandputparameters. There are actually quite some differences between the olddocker-imageand the newrepository-image. Perhaps the biggest difference is that the newrepository-imagehas no support for building images (i.e. from a Dockerfile).@marco-m If you have time to test and take it for a spin, that would be most welcome. As allways you can download a .vsix file of the snapshot builds from this page:
http://dist.springsource.com/snapshot/STS4/nightly-distributions.html
Also thanks again for reporting the issue as well as for the pointers to the relevant docs.
kdvolder commentedon Oct 21, 2019
PS: I mentioned that there would be release this week. However the release has been pushed back a bit till the beginning of november (which is why I decided I could still work in this bigger schema change as their's still enough time to test it before releasing it to the masses :-)
marco-m commentedon Oct 22, 2019
You are right. I completely forgot about it.
I will. Please ping me back if you don't hear from me in a few days.
You are the one to thank Kris! :-)
marco-m commentedon Oct 22, 2019
@kdvolder I tested the nightly build. It correctly handles the new
registry-image. From my point of view this ticket can be closed as Done, thanks again.On the other hand I found two other aspects that need to be updated, I will open a separate ticket.
kdvolder commentedon Oct 24, 2019
@marco-m Thanks for testing.
Yes, please do! Thanks in advance.
marco-m commentedon Oct 25, 2019
FYI the two new tickets I opened are #382 and #383.