Neverending Puppy Marathon
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    tarckerpublic

    Tar + Docker = Tarcker

    This commandline Node.js program lets you stream a tar directory with a Dockerfile and it will build an image and create/start the container.

    Install

    npm install tarcker -g

    Usage

    tar -C nodejs -c . | tracker --name foobar

    This will create the image image-foobar, create and start (without args) the container foobar.

    tarcker.json

    Tarcker talks to docker over http. You can put a tarcker.json file in the root of your directory which lets you define some custom json which gets passed to POST: /containers/create and POST: /containers/<id>/start request.

    You can find which properties are available at:

    {
      "start": {
        "Binds":["/tmp:/tmp"],
        "LxcConf":{"lxc.utsname":"docker"}
      },
      "create": {
        "Hostname":"",
        "User":"",
        "Memory":0,
        "MemorySwap":0,
        "AttachStdin":false,
        "AttachStdout":true,
        "AttachStderr":true,
        "PortSpecs":null,
        "Privileged": false,
        "Tty":false,
        "OpenStdin":false,
        "StdinOnce":false,
        "Env":null,
        "Cmd":[
        "date"
        ],
        "Dns":null,
        "Image":"base",
        "Volumes":{},
        "VolumesFrom":"",
        "WorkingDir":""
      }
    }

    Keywords

    none

    install

    npm i tarcker

    Downloadsweekly downloads

    9

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar