5516cd5baf
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) |
||
---|---|---|
.. | ||
oem | ||
Makefile | ||
README.md | ||
coreos-oem-inject.py | ||
docker_build.bash | ||
docker_clean.bash | ||
requirements.txt |
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