Development Tools Container

The project source comes with a dev directory which contains a script for building a rkt Ubuntu container with useful development tools.

To build this you must have a system with an installation of rkt and buildah. For macOS, the RktMachine project provides an xhyve-based VM running CoreOS with installations of rkt, buildah, docker2aci, and other useful container tools.

Building

Build the container using the provided build script:

sudo ./dev-cargo-sphinx.buildah.sh

This will make a dev-cargo-sphinx.oci in the directory. Convert this to dev-cargo-sphinx.aci for installation into rkt:

docker2aci dev-cargo-sphinx.oci
mv dev-cargo-sphinx-latest.aci dev-cargo-sphinx.aci

Note

The conversion may require the docker2aci version from github.com/woofwoofinc/docker2aci which has support for recent OCI container formats generated by buildah.

Install this into rkt:

rkt --insecure-options=image fetch ./dev-cargo-sphinx.aci

This container is intended for interactive use, so to run it with rkt use:

sudo rkt run \
    --interactive \
    --volume cargo-sphinx,kind=host,source=$(pwd) \
    dev-cargo-sphinx \
    --mount volume=cargo-sphinx,target=/cargo-sphinx

The current working directory is available on the container at /cargo-sphinx.