Add "label" information to images for categorization
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Inizia tracciando come vengono create le immagini e come Remove-DcnImage gestisce -Unused, -Keep e -Database. Definisci cosa significa "completato" per l'archiviazione di un'etichetta sulle immagini settimanali o giornaliere e per consentire a Remove-DcnImage di filtrare per -Label senza rimuovere immagini di altre categorie.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When creating an image, I think it would be useful if you could create it using a tag or a label that can label that image as being part of a certain process (or any other metadata you want to store about the image).
For example, if we have a scheduled task that images MyDatabase from the production server weekly. We use Remove-DcnImage -Unused -Keep 4 -Database MyDatabase to remove any images that are older than 4 weeks and aren't being used. These weekly ones are the ones we use for general features
However, I would also like to create a Daily images at midnight of the same database that would only be kept around if no clones are active for it. This is in case we need more recent data for dev work / troubleshooting.
For that one, I would run Remove-DcnImage -Unused -Database MyDatabase
The problem is that there is nothing to differentiate the weekly images from the daily images, so running the second Remove- command will remove weekly ones as well.
If we had labels that were issues when creating the weekly / daily images, I would be able to have the remove commands clean up backed on those labels
Remove-DcnImage -Unused -Database MyDatabase -Label daily
Remove-DcnImage -Unused -Keep 4 -Database MyDatabase -Label Weekly
- Lingua principale
- PowerShell
- Stelle
- 144
- Fork
- 32
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dataplat/dbaclone
-
Multiple bugs on non-English Windows (localization, Mount-DiskImage SD, Remove-DcnClone cleanup)Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 48/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
Tutte le issue di dataplat/dbaclone
Issue simili
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
triaging
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
anomalyco/opencode#62046 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Icinga/icingaweb2-module-director#3188 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vercel-labs/just-bash#741 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
containers/bubblewrap#826 ·
I maintainer di solito rispondono entro 1 giorno