英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论