No description
  • Go 98.6%
  • Shell 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Luca Bruno ce911a7227 Merge pull request #326 from dgonyeo/master
readme: add unmaintained notice
2017-08-23 16:10:50 +00:00
acbuild Error on trailing path separator in copy command. 2017-07-26 17:45:09 +02:00
Documentation Merge pull request #320 from sanmai-NL/patch-5 2017-08-14 12:07:50 -07:00
engine Handle host /etc/resolv.conf being a symlink 2017-03-09 11:03:10 +10:00
examples fix node-build trap script 2017-04-16 15:37:12 +02:00
lib Warn when begin command isn’t run as superuser 2017-07-12 12:54:04 +02:00
registry lib/run: better error output when dependency doesn't exist 2017-01-23 14:02:50 -08:00
scripts vagrant build uses go 1.5 2016-09-25 17:43:34 -04:00
tests Migrate appc/acbuild -> containers/build 2016-09-16 11:52:04 -04:00
util oci: fix symlink targets in layers 2017-03-27 15:43:40 +00:00
vendor vendor: added image-spec 2017-01-24 12:41:55 -08:00
.gitignore gen-man-pages: command added to output man pages for acbuild 2016-05-25 13:56:31 -07:00
.travis.yml replaced godeps with glide 2016-06-20 11:18:51 -07:00
build Merge branch 'master' into master 2017-07-10 11:44:29 -04:00
build-docker Add script to build acbuild in Docker 2015-10-13 16:38:21 -07:00
build-man-pages gen-man-pages: command added to output man pages for acbuild 2016-05-25 13:56:31 -07:00
build-rkt use rkt-builder instead of my alpine; remote install-deps.sh 2016-07-18 13:54:49 +00:00
CHANGELOG.md release: v0.4.0 2016-08-10 11:19:58 -07:00
glide.lock vendor: added image-spec 2017-01-24 12:41:55 -08:00
glide.yaml vendor: added image-spec 2017-01-24 12:41:55 -08:00
LICENSE Initial commit 2015-06-04 16:02:32 -07:00
MAINTAINERS *: add MAINTAINERS file 2016-03-16 11:24:14 +01:00
README.md Merge pull request #326 from dgonyeo/master 2017-08-23 16:10:50 +00:00
test Migrate appc/acbuild -> containers/build 2016-09-16 11:52:04 -04:00
Vagrantfile Workaround: install missing Virtualbox Guest Additions in Xenial 2016-08-08 16:48:03 -07:00

This project is currently unmaintained

acbuild was originally created to be the tool used to build AppC images. Due to the introduction of the Open Container Initiative, development on AppC was officially suspended in November, 2016. While acbuild has the ability to also produce OCI images, it is not the only tool capable of doing so. In its current state, acbuild is not currently maintained. If you wish to become a maintainer of acbuild, feel free to start contributing and ask for direct commit access via the issue/PR tracker.

For those looking for an OCI image manipulation tool that is actively maintained, umoci or buildah might be able to fill the role.

acbuild - another container build tool

acbuild is a command line utility to build and modify container images.

It is intended to provide an image build workflow independent of specific formats; currently, it can output the following types of container images:

http://www.youtube.com/watch?v=WcnIDm80y68

How to use rkt acbuild to construct app container images

Rationale

We needed a powerful tool for constructing and manipulating container images 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.

Installation

Dependencies

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:

  • cp
  • modprobe

Additionally systemd-nspawn is required to use the default engine for acbuild run. Thus on Ubuntu the systemd-container package needs to be installed.

Prebuilt Binaries

The easiest way to get acbuild is to download one of the releases from GitHub.

Build from source

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:

  1. Grab the source code for acbuild by git cloneing the source repository:

    cd ~
    git clone https://github.com/containers/build acbuild
    
  2. Run the build script from the root source repository directory:

    cd acbuild
    ./build
    

    Or, if you want to build in docker (assuming $PWD exists and contains acbuild/ on your Docker host):

    cd acbuild
    ./build-docker
    
  3. A bin/ directory will be created that contains the acbuild tool. To make sure your shell can find this executable, append this directory to your environment's $PATH variable. You can do this in your .bashrc or 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

Building acbuild with rkt

If rkt is installed on the system, acbuild can also be built inside of a rkt container with the following command:

./build-rkt

Trying out acbuild using Vagrant

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/containers/build acbuild
cd acbuild
vagrant up
vagrant ssh

Documentation

Documentation about acbuild and many of its commands is available in the Documentation directory in this repository.

Examples

Check out the examples directory for some common applications being packaged into ACIs with acbuild.