Giter Club home page Giter Club logo

containeranalysis's Introduction

The Container Analysis Project

Build Status

An application to gather information about images and containers on DockerHub and output this helpful info into a CSV file.

This script will gather information from public data sources. In order to gather information online, you will have to authenticate with the websites. This is why a user.yaml file is required but is not stored in this repo.

NOTE: currently only supports dockerhub repository

How to Run it

Create a user.yaml

A yaml file containing creditentials for your repositories (i.e. dockerhub). For example:

registries:
  hub.docker.com:
    ibmdev: MTAwecVyZC0=

The user.yaml file is required to execute the script.

Install libraries

pip3 install -r requirements.txt

Execute script

python3 get-image-info.py user.yaml

After execution is complete, you can view the results.csv file

A new directory called Applications/ will exist with more info about the Applications and Images.

Please note this script may not print out every result... or correctly. values.yaml are specific to each Application and so they are all written differently.

Commandline Options

python get-image-info.py --help

You can add your own index.yaml from a Helm Chart if you like.

By default, WARNING level logging is enabled. Otherwise run: Output is saved to a file called container-output.log in same directory as get-image-info.py.

How To Gather Info on dockerhub.com

Utilizing DockerHub v2 API this will send an HTTP request to a registry like hub.docker.com and receive a JSON file in return. Read about it here.

This example has no tags for an image https://hub.docker.com/v2/repositories/ppc64le/couchdb/tags/?page_size=100

This example has 1 tag for an image https://hub.docker.com/v2/repositories/ppc64le/elk/tags/?page_size=100

This example is the most detailed information we can get for a specific image tag https://hub.docker.com/v2/repositories/ppc64le/ibmjava/tags/sdk/

Contributing

Read the guide here.

License

The Container Analysis Project uses the Apache License Version 2.0 software license.

containeranalysis's People

Contributors

mtarsel avatar ryescholin avatar

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.