Coder Social home page Coder Social logo

wildermesser / registry-cleaner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digillect/registry-cleaner

0.0 0.0 0.0 43 KB

Tool to remove unused images from Docker registries

License: MIT License

Smarty 0.88% Ruby 98.18% Dockerfile 0.94%

registry-cleaner's Introduction

Registry Cleaner

Registry Cleaner is a tool to take care of Docker images that were created and published as a result of CI/CD process and are not used anymore.

Documentation

Installation and usage

First of all you have to prepare a configuration file (see Configuring Registry Cleaner) that describes required registries and scanners. You can put it anywhere in case of using Docker or you'll need to change an existing one in the deploy folder in case of Kubernetes installation.

Using Docker

To run the latest version of Registry Cleaner:

docker run --rm -it \
-v <path to config file>:/app/config.yaml \
-v <path to home directory>/.kube/config:/root/kube/config \
digillect/registry-cleaner

Using deployment to Kubernetes Cluster

The Helm chart to deploy Registry Cleaner to Kubernetes cluster can be found in the deploy folder.

To deploy latest version of Registry Cleaner:

helm upgrade --install registry-cleaner deploy

To deploy a specified version of Registry Cleaner:

helm upgrade --install --set imageTag=<tag> registry-cleaner deploy

By default Registry Cleaner spawns every night at 2 am. To change cleaning schedule pass --set schedule="<schedule>" parameter, where <schedule> is a Cron schedule specification.

RBAC

RBAC support is enabled by default and deployment will create all required resources. To disable RBAC (for old clusters) just add --set rbac=false to helm command.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.