acr-builder

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: MIT Imports: 1 Imported by: 0

README

ACR builder

Build Status

Build

Using Docker:

Execute the following commands from the root of the repository.

Linux:

$ docker build -f Dockerfile -t acb .

Windows:

$ docker build -f Windows.Dockerfile -t acb .

Requirements

  • Docker
  • There are also dependency images that are used throughout the pipeline. Refer to the baseimages folder for corresponding Dockerfiles to generate these images, and review the list below for Linux/Windows.

Linux Images

The following images are required:

  • scanner
  • docker
  • ubuntu

Windows Images

  • scanner
  • docker
  • microsoft/windowsservercore:1803

Usage

$ acb --help

Usage:
  acb [command]

Available Commands:
  build       Run a build
  exec        Execute a pipeline
  help        Help about any command
  init        Initialize a default template
  render      Render a template
  version     Print version information

Flags:
  -d, --debug   enable verbose output for debugging
  -h, --help    help for acb

Building an image

See acb build --help for a list of all parameters.

$ docker run -v /var/run/docker.sock:/var/run/docker.sock acb build https://github.com/Azure/acr-builder.git

Running a pipeline

See acb exec --help for a list of all parameters.

$ docker run -v $(pwd):/workspace --workdir /workspace -v /var/run/docker.sock:/var/run/docker.sock acb exec --homevol $(pwd) --steps templating/testdata/helloworld/git-build.yaml --values templating/testdata/helloworld/values.yaml --id demo -r foo.azurecr.io

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
baseimages
pkg

Jump to

Keyboard shortcuts

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