Code Monkey home page Code Monkey logo

loco's Introduction

Build Status https://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square

Docker Login Compressor - loco

loco is a utility for bundling Docker registry credentials for Marathon. Marathon can pull images from private repositories but requires a fetch object with the bundled credentials. Rather than logging in using the docker cli and altering a developer's ~/.docker/config.json which may have have credentials to other registries, loco creates the directory and config file in memory, and generates a docker.tar.gz.

The uncompressed config file looks like this:

{
    "auths": {
        "https://index.docker.io/v1/": {  # or your index
            "auth": "<base64 encoded username:password>"
        }
    }
}

This file can then be uploaded to some filestore and served to the marathon process by adding a fetch object to the application definition.

{
    ...
    "fetch": [
        {
            "uri": "http://private.uri.com/docker.tar.gz",
            "extract": true
        }
    ]
}

Installation

go get -u github.com/micahhausler/loco
# or
docker pull micahhausler/loco

Usage

loco -h
Docker Login Compressor
Usage of ./loco:

  -o, --output string     The file to create. Use "-" for Stdout. (default "docker.tar.gz")
  -p, --password string   The password
  -r, --registry string   Specify a specific registry (default "https://index.docker.io/v1/")
  -u, --username string   The user to login as
      --version           print version and exit

License

MIT License. See License for full text

loco's People

Contributors

micahhausler avatar

Stargazers

Justin Tamblyn avatar Will Sahatdjian avatar Christian Grabowski avatar Michael Hausenblas avatar Aaron Bell avatar Tobi avatar  avatar

Watchers

James Cloos avatar  avatar  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.