loco

command module
v0.0.0-...-52d263c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2016 License: MIT Imports: 4 Imported by: 0

README

Build Status

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL