coreos-image-builder/coreos/Makefile
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

19 lines
337 B
Makefile

default: docker coreos
docker:
./docker_build.bash
coreos:
mkdir -p UPLOAD
./coreos-oem-inject.py oem UPLOAD
clean:
rm -rf ironic-python-agent
rm -f oem/container.tar.gz
rm -f UPLOAD/coreos_production_pxe_image-oem.cpio.gz
rm -f UPLOAD/coreos_production_pxe.vmlinuz
rm -rf ../.image_cache
docker_clean:
./docker_clean.bash