Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad While CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad keyword NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str AttributeLoad NameLoad attr body If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad keyword NameLoad Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Str If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore ListLoad For NameStore ListLoad Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr Str NameLoad NameLoad body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Break Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Str NameLoad Assign NameStore SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assign NameStore SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Assign NameStore SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad NameLoad keyword NameLoad Assign NameStore Str If CompareNotEq AttributeLoad Call NameLoad Str attr Num body Raise Call NameLoad Str Assign NameStore NameLoad For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Str SubscriptLoad NameLoad Index Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad With Call NameLoad NameLoad NameStore body With Call NameLoad NameLoad NameStore body If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad orelse Expr Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad Str attr NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad keyword NameLoad If SubscriptLoad NameLoad Slice Num body AugAssignAdd SubscriptStore NameLoad Index Str Call AttributeLoad Str attr Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad keyword NameLoad keyword Call AttributeLoad Str attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Makina-States Stage SourceToImage runner

It will setup the env, then launch & wrap the stage0 -> 3 dance
The stage scripts need:

    - python-six
    - rsync
    - python > 2.6
    - acl (setfacl/getfacl)

 __future__ absolute_import __future__ division __future__ print_function N/A copy N/A sys N/A os N/A pipes N/A string N/A random N/A subprocess N/A hashlib N/A textwrap N/A six N/A N/A collections OrderedDict N/A N/A N/A ImportError N/A N/A N/A orderedict OrderedDict N/A N/A N/A ImportError N/A N/A OrderedDict dict N/A J N/A N/A os path join N/A _CWD N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A RED [31;01m N/A PURPLE [35;01m N/A CYAN [36;01m N/A YELLOW [33;01m N/A GREEN [32;01m N/A NORMAL [0m N/A COLORS N/A red purple cyan yellow normal green RED PURPLE CYAN YELLOW NORMAL GREEN StageError N/A Exception N/A N/A . N/A hashfile N/A N/A afile hasher blocksize N/A None 65536 N/A N/A N/A hasher N/A N/A hasher N/A N/A hashlib md5 N/A buf N/A N/A afile read blocksize N/A N/A N/A len buf 0 N/A N/A N/A N/A hasher update buf N/A buf N/A N/A afile read blocksize N/A N/A N/A hasher digest N/A id_generator N/A N/A size chars N/A 10 N/A N/A string ascii_uppercase N/A string digits N/A N/A N/A N/A join N/A N/A N/A random choice chars N/A _ N/A range size N/A purple N/A N/A msg pipe N/A N/A sys stdout N/A N/A N/A N/A pipe write PURPLE N/A N/A N/A pipe write msg N/A N/A N/A pipe write NORMAL N/A N/A N/A pipe write N/A red N/A N/A msg pipe N/A N/A sys stdout N/A N/A N/A N/A pipe write RED N/A N/A N/A pipe write msg N/A N/A N/A pipe write NORMAL N/A N/A N/A pipe write N/A cyan N/A N/A msg pipe N/A N/A sys stdout N/A N/A N/A N/A pipe write CYAN N/A N/A N/A pipe write msg N/A N/A N/A pipe write NORMAL N/A N/A N/A pipe write N/A yellow N/A N/A msg pipe N/A N/A sys stdout N/A N/A N/A N/A pipe write YELLOW N/A N/A N/A pipe write msg N/A N/A N/A pipe write NORMAL N/A N/A N/A pipe write N/A green N/A N/A msg pipe N/A N/A sys stdout N/A N/A N/A N/A pipe write GREEN N/A N/A N/A pipe write msg N/A N/A N/A pipe write NORMAL N/A N/A N/A pipe write N/A die N/A N/A reason pipe N/A N/A sys stderr N/A N/A N/A red reason pipe pipe N/A N/A StageError reason N/A die_in_error N/A N/A p reason pipe N/A N/A sys stderr N/A N/A N/A N/A p returncode 0 N/A N/A N/A die reason pipe pipe N/A warn_in_error N/A N/A p reason pipe N/A N/A sys stderr N/A N/A N/A N/A p returncode 0 N/A N/A N/A yellow reason pipe pipe N/A run_cmd N/A N/A cmd env shell output pipe errpipe N/A None True True N/A sys stdout N/A sys stderr N/A N/A N/A env N/A N/A env N/A N/A copy deepcopy N/A os environ N/A N/A output N/A N/A pipe N/A subprocess PIPE N/A errpipe N/A subprocess PIPE N/A p N/A N/A subprocess Popen cmd shell shell env env stderr errpipe stdout pipe N/A N/A N/A p wait N/A p N/A qrun_cmd N/A N/A N/A args kwargs N/A N/A N/A kwargs N/A output False N/A N/A run_cmd args kwargs N/A v_run N/A N/A cmd env shell pipe errpipe N/A None True N/A sys stdout N/A sys stderr N/A N/A N/A green cmd pipe pipe N/A N/A run_cmd cmd env env shell shell pipe pipe errpipe errpipe N/A v_die_run N/A N/A cmd env reason shell pipe errpipe N/A None None True N/A sys stdout N/A sys stderr N/A N/A N/A reason N/A N/A reason N/A N/A command {0} failed format cmd N/A p N/A v_run cmd env env shell shell pipe pipe errpipe errpipe N/A N/A die_in_error p reason pipe errpipe N/A p N/A q_die_run N/A N/A cmd env reason shell pipe errpipe N/A None None True N/A sys stdout N/A sys stderr N/A N/A N/A reason N/A N/A reason N/A N/A command {0} failed format cmd N/A p N/A run_cmd cmd output False env env shell shell pipe pipe errpipe errpipe N/A N/A die_in_error p reason pipe errpipe N/A p N/A N/A REPORT N/A N/A textwrap dedent {c[yellow]}CWD{c[normal]}:          {c[cyan]}{e[CWD]}{c[normal]}
{c[yellow]}OS{c[normal]}:           {c[cyan]}{e[MS_OS]}{c[normal]}
{c[yellow]}OS_RELEASE{c[normal]}:   {c[cyan]}{e[MS_OS_RELEASE]}{c[normal]}
{c[yellow]}DATADIR{c[normal]}:      {c[cyan]}{e[MS_DATA_DIR]}{c[normal]}
{c[yellow]}BASE{c[normal]}:         {c[cyan]}{e[MS_BASE]}{c[normal]}
{c[yellow]}BASEIMAGE{c[normal]}:    {c[cyan]}{e[MS_BASEIMAGE]}{c[normal]}
{c[yellow]}IMAGE{c[normal]}:        {c[cyan]}{e[MS_IMAGE]}{c[normal]}
{c[yellow]}IMAGE_DIR{c[normal]}:    {c[cyan]}{e[MS_IMAGE_DIR]}{c[normal]}
{c[yellow]}STAGE0 TAG{c[normal]}:   {c[cyan]}{e[MS_STAGE0_TAG]}{c[normal]}
{c[yellow]}STAGE1 TAG{c[normal]}:   {c[cyan]}{e[MS_STAGE1_NAME]}{c[normal]}
{c[yellow]}STAGE2 TAG{c[normal]}:   {c[cyan]}{e[MS_STAGE2_NAME]}{c[normal]}
{c[yellow]}IMAGE CANDIDATE{c[normal]}:   {c[cyan]}{e[MS_IMAGE_CANDIDATE]}{c[normal]}
{c[yellow]}DOCKER ARGS{c[normal]}:  {c[cyan]}{e[MS_DOCKER_ARGS]}{c[normal]}

 report N/A N/A environ pipe N/A N/A sys stdout N/A N/A N/A N/A pipe write N/A N/A REPORT format c COLORS e environ N/A main N/A N/A argv environ pipe errpipe N/A None None N/A sys stdout N/A sys stderr N/A N/A N/A environ N/A N/A environ N/A N/A copy deepcopy N/A os environ N/A N/A argv None N/A N/A argv N/A N/A sys argv N/A N/A N/A yellow ----------------------------------------------- pipe pipe N/A N/A yellow -   makina-states docker build system         - pipe pipe N/A N/A yellow ----------------------------------------------- pipe pipe N/A N/A yellow -   STAGE -1 - ASSEMBLING BUILD ENVIRONMENT   - pipe pipe N/A N/A yellow ----------------------------------------------- pipe pipe N/A N/A N/A environ setdefault MS_OS ubuntu N/A N/A N/A environ setdefault MS_OS_MIRROR http://mirror.ovh.net/ftp.ubuntu.com/ N/A N/A N/A environ setdefault DEFAULT_RELEASE N/A N/A N/A environ setdefault MS_COMMAND /bin/systemd --system N/A DEFAULT_RELEASE N/A N/A N/A environ N/A MS_OS ubuntu N/A N/A DEFAULT_RELEASE vivid N/A N/A N/A environ setdefault MS_OS_RELEASE DEFAULT_RELEASE N/A N/A N/A environ setdefault MS_DOCKER_ARGS N/A N/A N/A environ setdefault MS_BASE scratch N/A MS_DATA_DIR N/A N/A environ setdefault MS_DATA_DIR N/A N/A N/A os path join _CWD data N/A MS_IMAGE N/A N/A environ setdefault MS_IMAGE N/A N/A makinacorpus/makina-states-{0[MS_OS]}-{0[MS_OS_RELEASE]} format environ N/A MS_IMAGE_DIR N/A N/A environ setdefault MS_IMAGE_DIR N/A N/A N/A os path join N/A environ N/A MS_DATA_DIR N/A environ N/A MS_IMAGE N/A N/A N/A environ setdefault MS_DO_SNAPSHOT yes N/A N/A N/A environ setdefault MS_DO_ACLS yes N/A N/A N/A environ setdefault MS_DO_PASSWORDS_RESET yes N/A N/A N/A environ setdefault MS_MAKINASTATES_BUILD_FORCE N/A default_stage_path N/A N/A N/A os path join _CWD docker N/A stage_paths N/A N/A p N/A N/A J MS_IMAGE_DIR .salt N/A N/A environ setdefault MS_STAGE_PATH default_stage_path default_stage_path N/A N/A N/A N/A N/A N/A os path exists p N/A p stage_paths N/A N/A N/A N/A stage_paths append p N/A N/A env_key fic N/A N/A six iteritems N/A MS_DOCKER_STAGE0 MS_DOCKER_STAGE1 MS_DOCKER_STAGE2 MS_DOCKER_STAGE3 MS_DOCKERFILE_STAGE0 stage0.sh stage1.sh stage2.sh stage3.sh Dockerfile.stage0 N/A N/A stage_path stage_paths N/A N/A pretendant N/A N/A environ setdefault env_key N/A J stage_path fic N/A N/A N/A N/A os path exists pretendant N/A N/A N/A N/A N/A environ setdefault MS_STAGE0_TAG N/A N/A makinacorpus/makina-states-{0[MS_OS]}-{0[MS_OS_RELEASE]}-stage0:latest format environ N/A N/A N/A environ setdefault MS_GIT_BRANCH stable N/A N/A N/A environ setdefault MS_GIT_URL https://github.com/makinacorpus/makina-states.git N/A N/A N/A environ setdefault MS_IMAGE_CANDIDATE N/A N/A N/A N/A MS_IMAGE split : N/A 0 :candidate N/A N/A N/A environ setdefault MS_BASEIMAGE N/A N/A baseimage-{0[MS_OS]}-{0[MS_OS_RELEASE]}.tar.xz format environ N/A id_ N/A id_generator N/A N/A N/A environ setdefault MS_STAGE1_NAME N/A N/A N/A N/A N/A environ N/A MS_IMAGE replace / -stage1- id_ N/A N/A N/A environ setdefault MS_STAGE2_NAME N/A N/A N/A N/A N/A environ N/A MS_IMAGE replace / -stage2- id_ N/A MS_INJECTED_DIR N/A environ N/A MS_INJECTED_DIR N/A N/A N/A os path join N/A environ N/A MS_IMAGE_DIR injected_volumes N/A MS_IMAGE_ROOTFS N/A environ N/A MS_IMAGE_ROOTFS N/A N/A N/A os path join N/A environ N/A MS_IMAGE_DIR image_rootfs N/A MS_BOOTSTRAP_DIR N/A environ N/A MS_BOOTSTRAP_DIR N/A N/A N/A os path join MS_INJECTED_DIR bootstrap_scripts N/A N/A environ N/A cwd N/A environ N/A CWD _CWD N/A N/A report environ pipe pipe N/A cpcmd rsync -aA N/A N/A N/A N/A qrun_cmd which rsync returncode 0 N/A N/A N/A StageError You must install rsync and place it in your path N/A breakl False N/A i N/A MS_DATA_DIR MS_INJECTED_DIR MS_BOOTSTRAP_DIR MS_IMAGE_DIR N/A N/A N/A N/A N/A N/A os path exists i N/A N/A N/A N/A N/A cyan N/A N/A {0}: creating {1} format MS_IMAGE i pipe pipe N/A N/A N/A os makedirs i N/A N/A N/A OSError N/A N/A N/A die N/A N/A {0}: ${1} HOST datadir cant be created format MS_IMAGE i pipe pipe N/A breakl True N/A breakl N/A N/A N/A N/A pipe write N/A stage_files N/A OrderedDict N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR lxc-cleanup.sh N/A N/A N/A os path join _CWD files/sbin/lxc-cleanup.sh N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR makinastates-snapshot.sh N/A N/A N/A os path join _CWD files/sbin/makinastates-snapshot.sh N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR Dockerfile.stage0 N/A environ N/A MS_DOCKERFILE_STAGE0 N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR stage0.sh N/A environ N/A MS_DOCKER_STAGE0 N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR stage1.sh N/A environ N/A MS_DOCKER_STAGE1 N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR stage2.sh N/A environ N/A MS_DOCKER_STAGE2 N/A N/A stage_files N/A N/A J MS_BOOTSTRAP_DIR stage3.sh N/A environ N/A MS_DOCKER_STAGE3 N/A j stage_files N/A N/A i N/A N/A N/A os path basename j N/A k N/A stage_files N/A j N/A d N/A N/A N/A os path dirname j N/A N/A N/A N/A N/A os path exists k N/A N/A N/A die N/A N/A {0}: script {1} ({2}) does not exist format MS_IMAGE i k pipe errpipe N/A N/A N/A N/A N/A os path exists d N/A N/A N/A cyan N/A N/A {0}: creating {1} format MS_IMAGE d pipe pipe N/A N/A N/A os makedirs d N/A docp True N/A N/A N/A N/A N/A os path isfile j N/A N/A N/A os path exists j N/A N/A N/A os path exists k N/A N/A docp False N/A N/A open j jo N/A N/A N/A open k ko N/A N/A N/A N/A hashfile jo N/A hashfile ko N/A N/A docp True N/A N/A docp N/A N/A N/A yellow N/A N/A {0}: {1} already in place format MS_IMAGE i pipe pipe N/A N/A N/A q_die_run N/A N/A {0} {1} {2} format cpcmd N/A N/A pipes quote k N/A N/A pipes quote j env environ pipe pipe errpipe errpipe reason N/A N/A {0}: script {1} ({2} -> {3}) cant be copied format MS_IMAGE i k j N/A N/A cyan N/A N/A {0}: copied {1} -> {2} format MS_IMAGE k j pipe pipe N/A N/A N/A pipe write N/A N/A N/A N/A os path exists MS_IMAGE_ROOTFS N/A N/A N/A q_die_run N/A N/A {0} {1}/ {2}/ format cpcmd N/A N/A pipes quote MS_IMAGE_ROOTFS N/A N/A pipes quote MS_INJECTED_DIR env environ pipe pipe errpipe errpipe reason N/A N/A {0}: script ({1} -> {2}) cant be overriden format MS_IMAGE MS_IMAGE_ROOTFS MS_INJECTED_DIR N/A N/A cyan N/A N/A {0}: overidden
 {1}
  -> {2}
 format MS_IMAGE MS_IMAGE_ROOTFS MS_INJECTED_DIR pipe pipe N/A N/A argv N/A 1 N/A N/A N/A environ N/A MS_DOCKER_ARGS N/A N/A  {0} format N/A N/A join N/A argv N/A 1 N/A N/A purple -------------------- pipe pipe N/A N/A purple - stage-1 complete - pipe pipe N/A N/A purple -------------------- pipe pipe N/A N/A N/A pipe write N/A p N/A v_die_run N/A N/A {0}/injected_volumes/bootstrap_scripts/stage0.sh {1} format MS_IMAGE_DIR N/A N/A join argv env environ reason N/A N/A {0}: build failed format MS_IMAGE N/A N/A p environ pipe errpipe N/A N/A N/A __name__ __main__ N/A N/A N/A main