GithubHelp home page GithubHelp logo

artycleaner's Introduction

Artifactory housekeeper

A small application utility which allows to clean up Artifactory repos based on some search criteria.

Pull requests are very welcome. I only implemented what I needed.

Install

You can pull a pre-built image available at Docker Hub as follows:

$ docker pull m4ce/artycleaner

Usage

If you choose to run the process in a Docker container, I suggest you start from here:

$ docker run -it m4ce/artycleaner --help

The utility reads a configuration file that defaults to /app/artycleaner.yaml. If you wish to pass your own configuration file without building your own image, have a look at bind mount volumes.

---
api:
  # Artifactory REST endpoint
  endpoint: 'https://example.org/artifactory'
  # HTTP basic authentication
  #username: ''
  #password: ''
  # API key based authentication (preferred)
  api_key: ''
  ssl_verify: false
defaults:
  # Consider artifacts that have not been used in the last 60 days
  purge_ttl: "60d"
  # Minimum number of tags to keep per image (only supported on Docker repos)
  keep_tags: 60
  # Patterns (regex supported) to include for purge. On Docker repos, this will match the name of the image. On all others, the path will be used instead.
  include_pattern: []
  # Patterns (regex supported) to exclude from purge. On Docker repos, this will match the name of the image. On all others, the path will be used instead.
  exclude_pattern: []
  # Tags (regex supported) to include for purge (only supported on Docker repos)
  include_tags: []
  # Tags (regex supported) to exclude from purge (only supported on Docker repos)
  exclude_tags:
    - "latest"
repos:
  "docker-local":
    purge_ttl: "30d"
    keep_tags: 30
    exclude_tags:
      - 'stable'

All the defaults options can be overidden at the repository level. However, options like include_pattern, exclude_pattern, include_tags & exclude_tags will be (uniquely) merged.

Contact

Matteo Cerutti - [email protected]

artycleaner's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nicaurybenitez

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.