From 3767e80b6264bef0f836f05cb994fa0e5089141c Mon Sep 17 00:00:00 2001 From: Tuna Date: Wed, 31 May 2017 16:09:26 +0700 Subject: [PATCH] add make to build section --- README.md | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d354531..4bd4ceb 100644 --- a/README.md +++ b/README.md @@ -57,24 +57,19 @@ The image points to the Debian archive, so you are free to install packages from In those cases you can figure out which package is needed and manually specify to install it along with your desired packages. Please feel free to submit an issue request so that we can reach out and help you quickly. # Building Minideb -You can build an image yourself if you wish: -```console -### Install debootstrap and debian-archive-keyring. -$ apt-get update && apt-get install -y debootstrap debian-archive-keyring +We provide a Makefile to help you build Minideb locally. It should be run on a Debian based machine and requires sudo privileged. +``` +$ sudo make +``` -### Build Minideb -$ sudo ./buildall - -### To build an individual image -$ sudo ./mkimage jessie.tar jessie - -### Then you can import the tar file to a docker image (ex: minideb:jessie) -$ docker import -t minideb:jessie jessie.tar +To build an individual Minideb +``` +$ sudo make build-jessie ``` To test the resulting image: ``` -$ ./test minideb:jessie +$ sudo make test-jessie ``` # Contributing