npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@atomist/sdm-pack-docker

1.1.0-ipcrm-multi-registry.20190207170018 • Public • Published

@atomist/sdm-pack-docker

atomist sdm goals npm version

Atomist software delivery machine (SDM) extension Pack for an Atomist SDM to integrate docker.

See the Atomist documentation for more information on what SDMs are and what they can do for you using the Atomist API for software.

Usage

Configuration Reference:

{
  ...
  sdm: {
    "docker": {
      "build": {
        "push": boolean // Optional. Enable or disable pushes of images.
      },
      "tag": {
        "latest": boolean // Optional. Should new images also be tagged with latest
      }
    },
    "cache": {
      "enabled": boolean // Optional. Enable or disable caching support (specific to kaniko)
      "path": string // Optionally configure a new FS location for the cache path.  Defaults to /opt/data
    },
    "dockerinfo": {
       "registries": [
         { // Docker hub example
           "username": string, // Optional
           "password": string, // Optional
           "url": "registry.hub.docker.com/<user/org>",         // Full path to your registry - including user/org
           "displayUrl": "https://hub.docker.com/r/<user/org>", // Optional.  Customized display URL.  Will replace url.
           "displayBrowsePath": "/tags",                        // Optional.  Customized suffix.  Will replace :<version> in the full image tag
           "label": "Dockerhub",                                // Optional.  Display a friendly name for this docker registry (otherwise use full url)
           "display": true                                      // Optional.  Should we include this link with the goal externalUrls
         },
         { // GCR Example
           "url": "gcr.io/<your project name>-<your project id>",
           "display": true,
           "label": "GCR",
           "displayUrl": "https://console.cloud.google.com/gcr/images/<your project name>-<your project id>/GLOBAL",
           "displayBrowsePath": "?project=<your project id>&gcrImageListsize=30"
         }
       ]
    }
  }
 
}
 

Support

General support questions should be discussed in the #support channel in the Atomist community Slack workspace.

If you find a problem, please create an issue.

Development

You will need to install Node to build and test this project.

Build and test

Use the following package scripts to build, test, and perform other development tasks.

Command Reason
npm install install project dependencies
npm run build compile, test, lint, and generate docs
npm run lint run TSLint against the TypeScript
npm run compile generate types from GraphQL and compile TypeScript
npm test run tests
npm run autotest run tests every time a file changes
npm run clean remove files generated during build

Release

Releases are handled via the Atomist SDM. Just press the 'Approve' button in the Atomist dashboard or Slack.


Created by Atomist. Need Help? Join our Slack workspace.

install

npm i @atomist/sdm-pack-docker

Downloadsweekly downloads

691

version

1.1.0-ipcrm-multi-registry.20190207170018

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability