Skip to content

grayhemp/container-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

container-build

Build Status

An image helping to build images.

Under the hood it uses img wrapped with the imgh script simplifying and improving build and login/push operations.

Usage

Use your favorite container runtime to run grayhemp/build (which is essentially this image) in a privileged mode (so far) with environment variables REGISTRY_USER=<user> and export REGISTRY_PASSWORD=/run/password mounting your build context as /mnt/workspace, registry password as /run/password, and running

make
make push

assuming you have a Makefile in the root of your build context as the one in this repo.

To persist the build cache mount a persistent storage as /root/.local/share/img.

Please consult with the Makefile and imgh for more details.