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

[WIP: dont merge] #2109

Draft
wants to merge 82 commits into
base: main
Choose a base branch
from
Draft

[WIP: dont merge] #2109

wants to merge 82 commits into from

Commits on Jun 5, 2023

  1. commands: manifest: command to handle manifests

    Add a new manifest command to pack root commands and add a create
    subcommand to the manifest command.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    835902d View commit details
    Browse the repository at this point in the history
  2. cmd: manifest create: first PoC

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    ffe1f93 View commit details
    Browse the repository at this point in the history
  3. cmd: manifest: refactor code

    Use source/sinks instead of using primitives directly
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    08ec406 View commit details
    Browse the repository at this point in the history
  4. cmd: manifest: use ggcr library

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    9b2a978 View commit details
    Browse the repository at this point in the history
  5. cmd: manifest: use imgutil

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    3fc79cc View commit details
    Browse the repository at this point in the history
  6. manifest: use pack client interface

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    6b6f2b0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e3908c2 View commit details
    Browse the repository at this point in the history
  8. client: manifest sub command logic function templates

    Function templates for the following manifest sub command logics
    - create
    - add
    - annotate
    - push
    - remove
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    d767b1e View commit details
    Browse the repository at this point in the history
  9. commands: manifest sub command templates

    Command templates for the following manifest sub commands
    - Add
    - Annotate
    - Push
    - Remove
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    3c0b9cc View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e9ca7cb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3a7c262 View commit details
    Browse the repository at this point in the history
  12. manifest: create: remove path option from remote index:

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    40eade3 View commit details
    Browse the repository at this point in the history
  13. create_manifest: raise error if saving the index fails

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    67d5644 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b6b0f0d View commit details
    Browse the repository at this point in the history
  15. manifest: flag command as experimental

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    43f97b5 View commit details
    Browse the repository at this point in the history
  16. client: create an index factory

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    c3ac0ce View commit details
    Browse the repository at this point in the history
  17. create_manifest: use the index factory

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    1530c23 View commit details
    Browse the repository at this point in the history
  18. manifest: register subcommands

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    8460b97 View commit details
    Browse the repository at this point in the history
  19. manifest: add annotate subcommand

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    715e18a View commit details
    Browse the repository at this point in the history
  20. manifest: add 'add' subcommand

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    4a478b9 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b840b19 View commit details
    Browse the repository at this point in the history
  22. manifest: return error instead of calling panic

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    6dee05d View commit details
    Browse the repository at this point in the history
  23. manifest add: AppendManifest wrapper function will be removed from im…

    …gutil
    
    AppendManifest is a wrapper function in imgutil to append a new
    manifest to a local index and save it in local storage.
    This function will be removed in the future versions of imgutil.
    
    We will use the direct functions to append the manifest and
    store the index locally.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    ba95ad8 View commit details
    Browse the repository at this point in the history
  24. manfiest: add remove command

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    0631b34 View commit details
    Browse the repository at this point in the history
  25. manifest create: remove layout option

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    605a994 View commit details
    Browse the repository at this point in the history
  26. manifest add: remove redundent code

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    bb7902e View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7be9189 View commit details
    Browse the repository at this point in the history
  28. manifest create: remove redundant comment

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    12b1c0f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1824233 View commit details
    Browse the repository at this point in the history
  30. manifest command: wrap erros with useful information

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    0b99d2b View commit details
    Browse the repository at this point in the history
  31. manifest rm: rename file

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    16b3496 View commit details
    Browse the repository at this point in the history
  32. manifest rm: change command name remove to rm

    A new "remove" command will be added to remove an index
    from local storage and "rm" command will do the function
    of removing a manifest from an index.
    
    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    090a0ef View commit details
    Browse the repository at this point in the history
  33. manifest rm: rename file

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    802b794 View commit details
    Browse the repository at this point in the history
  34. manifest remove: new command to delete a local index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    6ca7fcc View commit details
    Browse the repository at this point in the history
  35. manifest inspect: new command to inspect local index

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    bf1503e View commit details
    Browse the repository at this point in the history
  36. manifest: code formatting

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    2b8fdf1 View commit details
    Browse the repository at this point in the history
  37. go mod tidy: imgutil v1.3.0

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    729c390 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Merge branch 'main' into test-manifest

    Signed-off-by: Juan Bustamante <[email protected]>
    jjbustamante authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    3cf9b10 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    4fe3a96 View commit details
    Browse the repository at this point in the history
  2. Use imgutil v1.4.0

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    d4f809d View commit details
    Browse the repository at this point in the history
  3. fix lint

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    ac9855f View commit details
    Browse the repository at this point in the history
  4. manifest: make generate

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    2cae965 View commit details
    Browse the repository at this point in the history
  5. fix format

    Signed-off-by: Husni Faiz <[email protected]>
    husni-faiz committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    a504b1a View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Merge branch 'main' into test-manifest

    Signed-off-by: Juan Bustamante <[email protected]>
    jjbustamante authored Sep 20, 2023
    Configuration menu
    Copy the full SHA
    4be0f38 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. WIP added pack manifest cli

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    1a7a930 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. WIP updated code as per imgutil's ImageIndex PR

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    8fcb673 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2024

  1. WIP upgraded imgutil to latest version

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    9c52f2d View commit details
    Browse the repository at this point in the history
  2. WIP fix some bugs of pack manifest cli

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Jan 22, 2024
    Configuration menu
    Copy the full SHA
    13ee7f0 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. WIP fix manifest cli

    Signed-off-by: sai kiran <[email protected]>
    sai kiran committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    5d5d8ec View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. WIP fix bugs related to OSFeatures and Push index

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    c74fe0f View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2024

  1. WIP fix bugs related to imgutils

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Feb 12, 2024
    Configuration menu
    Copy the full SHA
    6597bc8 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Merge branch 'main' into test-manifest

    Signed-off-by: Juan Bustamante <[email protected]>
    jjbustamante authored Feb 13, 2024
    Configuration menu
    Copy the full SHA
    3be294f View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. Merge branch 'test-manifest' into image-index

    Signed-off-by: Sai Kiran Maggidi <[email protected]>
    WYGIN authored Feb 14, 2024
    Configuration menu
    Copy the full SHA
    ddaf6bf View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. WIP: added couple of tests

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    c9e5850 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. added tests for client directive

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    5afa60a View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. added tests in commands package

    Signed-off-by: WYGIN <[email protected]>
    
    Date:      Wed Feb 28 09:46:46 2024 +0000
    Changes to be committed:
    	modified:   internal/commands/manifest.go
    	modified:   internal/commands/manifest_add.go
    	new file:   internal/commands/manifest_add_test.go
    	modified:   internal/commands/manifest_annotate.go
    	new file:   internal/commands/manifest_annotate_test.go
    	modified:   internal/commands/manifest_create.go
    	new file:   internal/commands/manifest_create_test.go
    	modified:   internal/commands/manifest_exists.go
    	new file:   internal/commands/manifest_exists_test.go
    	modified:   internal/commands/manifest_inspect.go
    	new file:   internal/commands/manifest_inspect_test.go
    	modified:   internal/commands/manifest_push.go
    	new file:   internal/commands/manifest_push_test.go
    	modified:   internal/commands/manifest_remove.go
    	new file:   internal/commands/manifest_remove_test.go
    	modified:   internal/commands/manifest_rm.go
    	new file:   internal/commands/manifest_rm_test.go
    	new file:   internal/commands/manifest_test.go
    WYGIN committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    6d65501 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. chore: updated imgutil to latest version

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    71316c3 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Configuration menu
    Copy the full SHA
    76a3678 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b477b2 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. WIP: feat: add multi-arch support

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    2610c47 View commit details
    Browse the repository at this point in the history
  2. WIP: created new file to handle multi-arch

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    a540add View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. WIP: refactor multi_arch_config

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    ab1df4e View commit details
    Browse the repository at this point in the history
  2. WIP some bp chnages

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    4e3aa93 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. WIP: feat: create image index for #SaveAsImage

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    1a2bfee View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. WIP: added Setters for WorkableImage

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    c8b35e7 View commit details
    Browse the repository at this point in the history
  2. chore: generate tests for new changes

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    0bc2ae8 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    6c3d14a View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. chore: add tests for multiArchBP

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    a30445b View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. fix: few bug fixes

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    3574670 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. fix: bugs in package_buildpack

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    776f99d View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    8063906 View commit details
    Browse the repository at this point in the history
  2. remove debug

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    be83b01 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. WIP: feat added multi-arch for and

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    1aea687 View commit details
    Browse the repository at this point in the history
  2. WIP: add multi-arch support for Usage:

      pack builder create <image-name> --config <builder-config-path> [flags]
    
    Examples:
    pack builder create my-builder:bionic --config ./builder.toml
    
    Flags:
      -R, --buildpack-registry string   Buildpack Registry by name
      -c, --config string               Path to builder TOML file (required)
          --flatten stringArray         List of buildpacks to flatten together into a single layer (format: '<buildpack-id>@<buildpack-version>,<buildpack-id>@<buildpack-version>'
      -h, --help                        Help for 'create'
      -l, --label stringToString        Labels to add to the builder image, in the form of '<name>=<value>' (default [])
          --publish                     Publish the builder directly to the container registry specified in <image-name>, instead of the daemon.
          --pull-policy string          Pull policy to use. Accepted values are always, never, and if-not-present. The default is always
      -t, --target strings              Targets are the platforms list to build. one can provide target platforms in format [os][/arch][/variant]:[distroname@osversion@anotherversion];[distroname@osversion]
                                        	- Base case for two different architectures :  '--target "linux/amd64" --target "linux/arm64"'
                                        	- case for distribution version: '--target "windows/amd64:[email protected]"'
                                        	- case for different architecture with distributed versions : '--target "linux/arm/v6:[email protected]"  --target "linux/arm/v6:[email protected]"'
    
    Global Flags:
          --force-color   Force color output
          --no-color      Disable color output
      -q, --quiet         Show less output
          --timestamps    Enable timestamps in output
      -v, --verbose       Show more output
    
    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ac2fd30 View commit details
    Browse the repository at this point in the history
  3. WIP: chore upgrade imgutil dependency

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    536eade View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. WIP: minor bug fixes

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    a129b74 View commit details
    Browse the repository at this point in the history
  2. WIP: bug fixes for pack builder create

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    150d28c View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. refactor: improve code readability

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    83f7539 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'image-index' of https://github.com/WYGIN/buildpacks-pack

    …into feat/multi-arch/phase2
    SaikiranIndia committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    94f78dc View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2024

  1. upgrade dependency

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    8cd5055 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. WIP: added tests for config toml files

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    5d6a423 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. feat: add multi-arch file format to save

    Signed-off-by: WYGIN <[email protected]>
    WYGIN committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    a78dd26 View commit details
    Browse the repository at this point in the history