Artifactory 清理 – 清理 conan 包和 Docker 镜像的正确方式是什么?

huangapple go评论58阅读模式
英文:

Artifactory cleanup - what is the right way to clean conan packages and docker images?

问题

我正在制作一个Artifactory清理脚本。
我想知道正确的方法是清理/删除Conan包和Docker镜像。
我应该使用Conan/Docker CLI,还是可以简单地使用JFrog CLI或REST从artifactory中删除相关文件夹?
使用JFrog CLI会删除所有相关的元数据吗?

谢谢!

还没尝试过什么。我在这里问是因为我想让我的脚本尽可能简单,不想让它依赖外部工具,只依赖于Artifactory/JFrog的调用。

英文:

I'm working on an Artifactory Cleanup script.
I wanted to know what is the right way to clean/delete Conan packages and Docker images.
Should I use Conan/Docker CLI or can I simply delete the relevant folders from artifactory with JFrog CLI or rest?
Using JFrog CLI will delete all relevant metadata as well?

Thanks!

didn't try anything yet. I'm asking here because I want to make my script as simple as possible and I don't want it to depend on external tools. Just on Artifactory/JFrog calls.

答案1

得分: 3

有一个由JFrog提供的开箱即用的清理插件,在这里
当然,你可以使用它并根据你的要求进行更改。

至于Docker,有一个提议的解决方案在这里
你也可以使用CLI,但如果你需要更复杂的逻辑,你可能需要使用Artifactory查询语言,上述解决方案都使用了这种逻辑。

英文:

There is a cleanup plugin out of the box provided by JFrog here.
Of course, you can take it and change it per your requirements.

As for Docker, there is a proposed solution here.
You can also use the CLi's, but if you want more complex logic, you may want to use the Artifactory Query Language, the above solutions both use this logic.

huangapple
  • 本文由 发表于 2023年3月12日 16:08:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/75711805.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定