Giter VIP home page Giter VIP logo

dockmoor's People

Contributors

menedev avatar sbcd90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dockmoor's Issues

Add update command

The update command should update images to the latest image according to SemVer-based tags or the current latest image.

Blocked by #8

Add pin command

The pin command replaces image references with their equivalent, but more reproducible counterpart.
Ways to archive that:

  • Add digest to image reference
  • Add (more specific) tag.
    • none -> latest
    • none -> 1.2.1
    • latest -> 1.2.1
    • 1.2 -> 1.2.1

Note that the substitution should only be performed if the new reference is equivalent, i.e. referring to the same image.
Depending on the scope this can mean one of two things:

  • Docker Daemon (blocked by #1 )
  • Docker Registry (blocked #2)

There should be an option to toggle between both scopes. Blocked by #8

Add outdated filter

Based on information from either the docker daemon (blocked by #1) or a docker repository (blocked be #2), image references with a tag complying to SemVer rules can be identified and filtered when there are no newer versions available.

Blocked by #8

Add regex support for string based filters

Dockmoor has several filters, to limit actions to a set of image references. This includes:

  • domain
  • name
  • tag

For all those filters a regex implementation would be useful.

The regex implementation could be triggered by surrounding the string with / on the commandline, e.g.

dockmoor list --tag "/-testing/"

However other implementations are welcome.

Implement Travis CI Format

Implement the dockfmt.Format interface for .travis.yml.

Design goal: When the file is changed, every change must be as local as possible. That means that white-spaces (including line-endings) and comments are retained. Only the image reference may change.

While this is not strictly blocked by #5 / #13, the design goal only makes sense afterwards.

Implement docker-compose.yml Format

Implement the dockfmt.Format interface for docker-compose.yml.

Design goal: When the file is changed, every change must be as local as possible. That means that white-spaces (including line-endings) and comments are retained. Only the image reference may change.

While this is not strictly blocked by #5 / #13, the design goal only makes sense afterwards.

Implement Circle CI Format

Implement the dockfmt.Format interface for .circleci/config.yml.

Design goal: When the file is changed, every change must be as local as possible. That means that white-spaces (including line-endings) and comments are retained. Only the image reference may change.

While this is not strictly blocked by #5 / #13, the design goal only makes sense afterwards.

Rework predicates to mirror components of image reference

Each component of a reference should be reflected by at least one predicate.

See https://github.com/docker/distribution/blob/master/reference/reference.go

The components are:

  • Domain (including port)
  • Path
  • Tag
  • Digest

There is also the synthesized

  • Name (which is Domain + Path)
  • FamiliarName (which is just the last path-component, e.g. nginx for docker.io/library/nginx)

which should be taken into account as this seems to be the most widely used form of docker image references.

Create common base for yaml files

Since yaml is widely used, there should be a common set of helpers to cope with the format. Unfortunately there is currently no round-trip parser for yml in go.

The helpers should allow to retrieve and replace values by path. Other implementations are welcome as long as they allow to change single values without affecting other parts of a yaml file.

Implement .gitlab-ci.yml Format

Implement the dockfmt.Format interface for .gitlab-ci.yml.

Design goal: When the file is changed, every change must be as local as possible. That means that white-spaces (including line-endings) and comments are retained. Only the image reference may change.

While this is not strictly blocked by #5 / #13, the design goal only makes sense afterwards.

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.