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

Add utility class to decompress archive files #2456

Closed
2 tasks done
rohanKanojia opened this issue Nov 21, 2023 · 0 comments · Fixed by #2471
Closed
2 tasks done

Add utility class to decompress archive files #2456

rohanKanojia opened this issue Nov 21, 2023 · 0 comments · Fixed by #2471
Assignees
Milestone

Comments

@rohanKanojia
Copy link
Member

rohanKanojia commented Nov 21, 2023

Component

JKube Kit

Task description

Part of #439

Related to #2454

As a JKube developer, I want to be able to let JKube extract a downloaded tar-gzipped or zip archive containing a Buildpacks CLI (pack) for my platform and system architecture to the specified directory, so that I can invoke a consistent version of the CLI tool (see #2453).

The required archive types for decompression should be:

  • tar gzipped archives .tgz
  • zip archives .zip

Implementation

Utility should be implemented in the org.eclipse.jkube.kit.common.archive package of the jkube-kit-common module.

The utility should provide a extractArchive(File inputFile, File targetDirectory).

For the Buildpacks CLI case, we should consider if the archive wraps a directory and see how to take care of this in order to locate the binary (probably belongs to #2454).

@manusa manusa changed the title Add JKubeTarUnarchiver utility class to decompress archive files Add utility class to decompress archive files Nov 22, 2023
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Nov 22, 2023
…es (eclipse-jkube#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Nov 22, 2023
…es (eclipse-jkube#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@rohanKanojia rohanKanojia self-assigned this Nov 22, 2023
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Nov 22, 2023
…es (eclipse-jkube#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Nov 22, 2023
…es (eclipse-jkube#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Nov 22, 2023
…es (eclipse-jkube#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Nov 23, 2023
…es (eclipse-jkube#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@manusa manusa self-assigned this Nov 24, 2023
@manusa manusa added this to the 1.16.0 milestone Nov 24, 2023
manusa pushed a commit that referenced this issue Nov 24, 2023
…es (#2456)

Add JKubeArchiveDecompressor utility class.
It's extractArchive method would extract the utility class to specified
folder. It only supports `.tgz` and `.zip` files at the moment.

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants