acbuild is a command line utility to build and modify App Container Images (ACIs), the container image format defined in the App Container (appc) spec.
<iframe width="560" height="315" src="https://www.youtube.com/embed/WcnIDm80y68" frameborder="0" allowfullscreen></iframe>We needed a powerful tool for constructing and manipulating ACIs that made it
easy to iteratively build containers, both from scratch and atop existing
images. We wanted that tool to integrate well with Unix mechanisms like the
shell and Makefiles so it would fit seamlessly into well-known administrator
and developer workflows.
acbuild can only be run on a Linux system, and has only been tested on the amd64 architecture.
For trying out acbuild on Mac OS X, it's recommended to use Vagrant. Instructions on how to do this are a little further down in this document.
acbuild requires a handful of commands be available on the system on which it's run:
cpmodprobegpg
Additionally systemd-nspawn is required to use the default
engine for acbuild run. Thus on Ubuntu the systemd-container package needs to be installed.
The easiest way to get acbuild is to download one of the
releases from GitHub.
The other way to get acbuild is to build it from source. Building from source requires Go 1.5+.
Follow these steps to do so:
-
Grab the source code for
acbuildbygit cloneing the source repository:cd ~ git clone https://github.com/appc/acbuild -
Run the
buildscript from the root source repository directory:cd acbuild ./buildOr, if you want to build in docker (assuming
$PWDexists and containsacbuild/on your Docker host):cd acbuild ./build-docker -
A
bin/directory will be created that contains theacbuildtool. To make sure your shell can find this executable, append this directory to your environment's$PATHvariable. You can do this in your.bashrcor similar file, for example:vi ~/.bashrc
and put the following lines at the end of the file:
export ACBUILD_BIN_DIR=~/acbuild/bin
export PATH=$PATH:$ACBUILD_BIN_DIR
For users with Vagrant 1.5.x or greater, there's a provided Vagrantfile that
can quickly get you set up with a Linux VM that has both acbuild and rkt. The
following steps will grab acbuild, set up the machine, and ssh into it.
git clone https://github.com/appc/acbuild
cd acbuild
vagrant up
vagrant ssh
Documentation about acbuild and many of its commands is available in the
Documentation
directory in this
repository.
Check out the examples
directory for some common
applications being packaged into ACIs with acbuild.
- https://github.com/sgotti/baci
- https://github.com/appc/spec/tree/master/actool - particularly the
buildandpatch-manifestsubcommands.acbuildmay subsume such functionality, leavingactoolas a validator only. - https://github.com/blablacar/dgr