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

Display the tool creation history for the tools versions #1140

Open
sidoruka opened this issue May 27, 2020 · 6 comments
Open

Display the tool creation history for the tools versions #1140

sidoruka opened this issue May 27, 2020 · 6 comments
Assignees
Labels
goal/dorado ✨ kind/enhancement New feature or request state/has-doc Issues that have documentation state/verify Issues that are already addressed and require validation sys/core Issues related to core functionality (API, VM management, ...) sys/gui Issues related to the web gui sys/registry Issues related to the docker registry integration
Milestone

Comments

@sidoruka
Copy link
Contributor

Background
At the moment, Cloud Pipeline provides a listing of the packages, retrieved by the docker-comp-scanner service. This is useful to get general information and find a tool, which contains specific software.
In certain cases, users would like to know how the image was built. As the Dockerfiles are not always available, we shall try to extract this information form the image/layers manifests.

Approach

  • Backend
    • Research if it's feasible to grab the following information for a specific tool version:
      • List of layers
      • Size of each layer
      • Command, which is used to build a layer
      • The BASE image (e.g. in form of FROM ...)
    • If so - expose an API method, which is capable to provide this information to the client
  • GUI
    • Add another tab to the tool version page: Commands
    • This tab shall display a list of the layers/commands/sized, returned by the API:
      • Layer command (short, e.g. 200 symbols) + size of the layer
      • Click layer entry to display a full command text
      • Use bash highlighting for the command text
@sidoruka sidoruka added kind/enhancement New feature or request sys/registry Issues related to the docker registry integration sys/gui Issues related to the web gui sys/core Issues related to core functionality (API, VM management, ...) goal/dorado ✨ labels May 27, 2020
@sidoruka sidoruka added this to the v0.16 milestone May 27, 2020
@sidoruka
Copy link
Contributor Author

Let's backport to release/0.15 if these changes are not intersecting much with the other functionality

mzueva pushed a commit that referenced this issue May 29, 2020
* Issue #1140 Extract commands of image build from its manifest

* Issue #1140 Return layer size along with command in tool image history request

* Issue #1140 Refactoring of HistoryEntry parsing
@mzueva
Copy link
Collaborator

mzueva commented May 29, 2020

@rodichenko API method tool/{id}/history is ready

@rodichenko
Copy link
Contributor

@sidoruka GUI part implemented (2933253)

@rodichenko
Copy link
Contributor

@sidoruka @NShaforostov GUI part backported to release/0.15 (02697fc)

mzueva pushed a commit that referenced this issue Jun 1, 2020
* Issue #1140 Extract commands of image build from its manifest

* Issue #1140 Return layer size along with command in tool image history request

* Issue #1140 Refactoring of HistoryEntry parsing
@mzueva mzueva added the state/verify Issues that are already addressed and require validation label Jun 9, 2020
@NShaforostov
Copy link
Collaborator

Verified. Works well

NShaforostov added a commit that referenced this issue Nov 7, 2022
NShaforostov added a commit that referenced this issue Nov 7, 2022
- 'Sensitive storages' (#1036)
- 'Tool image history' (#1140)
- 'Custom run capabilities' (#2234, #2295, #2323)
- 'Storage Lifecycle' (#2721, #2759)
@NShaforostov
Copy link
Collaborator

Docs were added via #2547 and can be found here.

@NShaforostov NShaforostov added the state/has-doc Issues that have documentation label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal/dorado ✨ kind/enhancement New feature or request state/has-doc Issues that have documentation state/verify Issues that are already addressed and require validation sys/core Issues related to core functionality (API, VM management, ...) sys/gui Issues related to the web gui sys/registry Issues related to the docker registry integration
Projects
None yet
Development

No branches or pull requests

5 participants