Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] "convert --images" list only built images #8994

Closed
abdennour opened this issue Dec 4, 2021 · 10 comments
Closed

[Feature Request] "convert --images" list only built images #8994

abdennour opened this issue Dec 4, 2021 · 10 comments
Labels

Comments

@abdennour
Copy link

abdennour commented Dec 4, 2021

Description

docker compose convert --images list all images.
This feature request is about listing only built images not all of them

Proposal

  • Option 1

    • Overview
      Adding another flag for the subcommand convert called "--built-images"
    • Sample(s)
      docker compose convert --built-images
    • Advantages over other options
      Dedicated flag for a unique purpose
  • Option 2

    • Overview
      Adding another flag for the subcommand convert called "--only-built" to be used alongside with the current flag "--images"
    • Sample(s)
      docker compose convert --images --only-built
    • Advantages over other options
      the new flag "--only-built" becomes as filter for any convert subcommand ( not only images)

Please let me know which one do you prefer and i can open PR for that

@abdennour abdennour changed the title Feature Request - convert --built-images to list only built images [Feature Request] "convert --images" list only built images Dec 4, 2021
@abdennour
Copy link
Author

Please let me know which one do you prefer and i can open PR
@mat007 @glours @ndeloof PFYI

abdennour added a commit to ElmCompany/compose that referenced this issue Dec 4, 2021
Ability to filter images by services which uses built images

It solves docker#8994 ( option 2 )

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 4, 2021
Ability to filter images by services which uses built images

It solves docker#8994 ( option 2 )

Signed-off-by: abdennour <mail@abdennoor.com>
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
@ndeloof
Copy link
Contributor

ndeloof commented Dec 4, 2021

My preference goes to

  1. introduce actual subcommand compose config images
  2. have this new subcommand declare its own flags. In terms of UX I'd prefer a simpler --built but that's to be debated
  3. deprecate --images and redirect to this new subcommand
  4. (do the same for other pseudo-commands in the config command for UX homogeneity

@abdennour
Copy link
Author

abdennour commented Dec 4, 2021

I like it! but what if this can be global option for the whole CLI (filter services) ?!
As you mentioned for --built, it should be debated. indeed, what if i want to render the opposite : ready/pulled images only.
@ndeloof So that option should cover:

  • all images (binary opt value: 11)
  • only built images (binary opt value : 01)
  • only ready images (binary opt value: 10) ( all images - only built images)

@abdennour
Copy link
Author

abdennour commented Dec 4, 2021

can we go agile : releasing config --built-images , then think about refactoring/re-organizing? @ndeloof

More details here: #8995 (comment)

abdennour added a commit to ElmCompany/compose that referenced this issue Dec 4, 2021
It solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 4, 2021
It solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
@abdennour
Copy link
Author

abdennour commented Dec 6, 2021

@ndeloof i am still thinking with you.
This is another design:

  • BUILT_SERVICES=$(docker compose config --built-services) ( new option here to be released)
  • then: docker compose config --images $BUILT_SERVICES ( no change here )

But honestly, i would like to be a single command.

@abdennour
Copy link
Author

Reminder @ndeloof !

@abdennour
Copy link
Author

I just realized that you already use the terminology imagesToBuild

imagesToBuild := []string{}

I will rename --built-images to --images-to-build , and after that, i think it's acceptable and the related PR #8995 can be merged

@ndeloof @glours FYI

abdennour added a commit to ElmCompany/compose that referenced this issue Dec 17, 2021
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 17, 2021
it solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 18, 2021
Ability to filter images by services which uses built images

It solves docker#8994 ( option 2 )

Signed-off-by: abdennour <mail@abdennoor.com>
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 18, 2021
It solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 18, 2021
Ability to filter images by services which uses built images

It solves docker#8994 ( option 2 )

Signed-off-by: abdennour <mail@abdennoor.com>
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Dec 18, 2021
It solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
@abdennour
Copy link
Author

@glours Kindly reminder
@ndeloof

abdennour added a commit to ElmCompany/compose that referenced this issue Jan 17, 2022
Ability to filter images by services which uses built images

It solves docker#8994 ( option 2 )

Signed-off-by: abdennour <mail@abdennoor.com>
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
abdennour added a commit to ElmCompany/compose that referenced this issue Jan 17, 2022
It solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
abdennour added a commit to ElmCompany/compose that referenced this issue Jan 17, 2022
it solves docker#8994

Signed-off-by: abdennour <mail@abdennoor.com>
@stale
Copy link

stale bot commented Jul 10, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 10, 2022
@stale
Copy link

stale bot commented Nov 2, 2022

This issue has been automatically closed because it had not recent activity during the stale period.

@stale stale bot closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants