coreos-image-builder/coreos
Jay Faulkner 5516cd5baf Use docker import/export to make image smaller
Using docker export gives us only the top filesystem layer and not all
the layers used to build. Resulting image is about 20% smaller. Further
optimizations will be made in future commits via removing build time
deps and temporary files in the Dockerfile.

Change-Id: I0f7ad6d00c6f47836dcd71b05907076701bb2789
(cherry picked from commit 99dba22eaa3961234abde1294e55026fd2cc9d4d)
2014-04-17 10:05:56 -07:00
..
oem Use docker import/export to make image smaller 2014-04-17 10:05:56 -07:00
Makefile Use docker import/export to make image smaller 2014-04-17 10:05:56 -07:00
README.md Doing replacement on imagebuild 2014-03-19 16:35:55 -07:00
coreos-oem-inject.py Use docker import/export to make image smaller 2014-04-17 10:05:56 -07:00
docker_build.bash Use docker import/export to make image smaller 2014-04-17 10:05:56 -07:00
docker_clean.bash img(coreos): Initial commit of CoreOS image build 2014-03-04 15:16:35 -08:00
requirements.txt Minor fixes to image build 2014-04-14 13:33:04 -07:00

README.md

ironic-python-agent CoreOS Image builder.

Builds a CoreOS image suitable for running the ironic-python-agent on a server.

Requirements

Must be run from a linux machine with a working docker installation and python-pip

Run the following locally or from a virtualenv to install the python requirements

pip install -r requirements.txt

Instructions

To create a docker repository and embed it into a CoreOS pxe image:

make

To just create the docker repository in oem/container.tar.gz:

make docker

To embed the oem/ directory into a CoreOS pxe image:

Note: In order to have the ability to ssh into the created image, you need to pass ssh keys in via the kernel command line for CoreOS, or create oem/authorized_keys with the keys you need added before building the image.

make coreos