No description
Find a file
Valentin Rothberg ba7191aed9
Merge pull request #24 from vrothberg/add-integration-tests
add simple integration tests
2019-09-11 16:21:32 +02:00
test add simple integration tests 2019-09-11 16:16:58 +02:00
.travis.yml add simple integration tests 2019-09-11 16:16:58 +02:00
BuildSourceImage.sh Merge pull request #18 from vbatts/clearer_driver_log 2019-09-11 11:10:21 +02:00
Dockerfile Add build-container make target 2019-09-11 11:53:47 +02:00
LICENSE Initial commit 2019-07-12 14:36:52 -04:00
Makefile add simple integration tests 2019-09-11 16:16:58 +02:00
README.md README: add Travis CI badge 2019-09-11 11:08:23 +02:00

Build Status

BuildSourceImage

Tool to build a source image. The goal is to make retrieving the source code used to make a container image easier for users to obtain, using the standard OCI protocols and image formats.

Usage

$> ./BuildSourceImage.sh -h
BuildSourceImage.sh version 0.1
Usage: BuildSourceImage.sh [-D] [-b <path>] [-c <path>] [-e <path>] [-r <path>] [-o <path>] [-i <image>] [-p <image>] [-l] [-d <drivers>]

       -b <path>        base path for source image builds
       -c <path>        build context for the container image. Can be provided via CONTEXT_DIR env variable
       -e <path>        extra src for the container image. Can be provided via EXTRA_SRC_DIR env variable
       -s <path>        directory of SRPMS to add. Can be provided via SRPM_DIR env variable
       -o <path>        output the OCI image to path. Can be provided via OUTPUT_DIR env variable
       -d <drivers>     enumerate specific source drivers to run
       -l               list the source drivers available
       -i <image>       image reference to fetch and inspect its rootfs to derive sources
       -p <image>       push source image to specified reference after build
       -D               debuging output. Can be set via DEBUG env variable
       -h               this usage information
       -v               version

It also nicely usable inside a container

$> buildah build-using-dockerfile -t containers/buildsourceimage .

Examples

  • Building from a fetched reference asciicast
  • Building from a directory of src.rpms: asciicast
  • Building from a directory of src.rpms and pushing it to a simple registry: asciicast

Use Cases

  • Build a source image from an existing container image by introspection
  • Build a source code image from a collection of known .src.rpm's
  • Include additional build context into the source image
  • Include extra sources use