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

Cleanup old artifacts #385

Closed
utarwyn opened this issue Feb 25, 2021 · 18 comments
Closed

Cleanup old artifacts #385

utarwyn opened this issue Feb 25, 2021 · 18 comments
Assignees
Labels
feature New feature request

Comments

@utarwyn
Copy link

utarwyn commented Feb 25, 2021

Hello, first I would like to thank you for the active support on the project, I am really satisfied with your service.

I use timestamp-based snapshots in my Reposilite instance to store development artifacts. But as time goes by, my global disk usage is growing. The "disk quota" feature is very nice to avoid a disk saturation. But by using your service, I don't have a quickly or automatically way for cleaning up old artifacts.

Is it a planned feature? Or maybe too complex/consuming to be implemented?
I don't have a clear idea how to integrate it (maybe a max amount of snapshots per artifact?).

@dzikoysk dzikoysk added the feature New feature request label Feb 25, 2021
@dzikoysk
Copy link
Owner

Thanks :)

Yeah, it sounds reasonable. I'm not sure how to solve this issue at this moment, but I'll try to explore possible options after #384.

@utarwyn
Copy link
Author

utarwyn commented Feb 25, 2021

Thank you! It's not urgent :)

@caoli5288
Copy link

So how to keep only the latest snapshots artifacts?

@utarwyn
Copy link
Author

utarwyn commented Mar 9, 2021

@caoli5288: that's kind of the goal of this issue yes :)

@dzikoysk
Copy link
Owner

dzikoysk commented Mar 9, 2021

All issues are kinda suspended due to some braking changes on #387 by @Haven-King. I don't want to make it more difficult for him, so we need to wait for a while 😛

@Haven-King
Copy link
Contributor

This seems like it would be a good use-case for per-repository options, as detailed in #394.

@utarwyn
Copy link
Author

utarwyn commented Mar 9, 2021

Yep, I definitly agree with that idea!

@caoli5288
Copy link

any progress?

@dzikoysk
Copy link
Owner

dzikoysk commented Apr 15, 2021

We're still with #387 which conflicts with this topic, so unfortunately it's not available yet. It's issue of high priority, so as soon as we will get through it, I'll take care of it. Moving to nio and implementing whole fs abstraction takes some time :/ It's also developed by volunteer and I don't want make his task harder because of some various merge conflicts.

@Haven-King
Copy link
Contributor

nio porting and file system abstraction are nearly done, I just need to do some more thorough testing. I'll hopefully have it in a "finished" state by the end of next week.

@dzikoysk
Copy link
Owner

dzikoysk commented Aug 16, 2021

I'll add it after 3.x release as I don't want to introduce new features to somehow simplify this process.

@dzikoysk dzikoysk self-assigned this Nov 13, 2021
@dzikoysk
Copy link
Owner

dzikoysk commented Jan 1, 2022

Available in Configuration tab in the dashboard, configurable per each repository:

image

@utarwyn
Copy link
Author

utarwyn commented Jan 2, 2022

Thank you for this addition! I can't wait to try version 3 🥳

@dzikoysk
Copy link
Owner

dzikoysk commented Jan 2, 2022

I think it was the longest opened issue in this repository, not quite proud of this fact, but at least I like the fact, it's fully implemented as event listener on top of the new plugin api 🎉 This feature will be available in 3.0.0-alpha.17

@marco-brandizi
Copy link

@dzikoysk is this in the web interface? I've just upgraded to 3.5.5 and I can't find it in the repository configurations.

@dzikoysk
Copy link
Owner

dzikoysk commented Feb 24, 2024

Yes, this option is covered in the settings tab (Settings -> Maven -> Select a repository) by this property:

obraz

It's enabled by default for all repositories, so it won't store old snapshot files.

@marco-brandizi
Copy link

@dzikoysk thanks. I thought the feature allows for telling how many old repos to retain, but it's good even without this detail.

@dzikoysk
Copy link
Owner

Sure, keep in mind that if you have some specific requirements, you can always cover this via plugin api with your own implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

5 participants