# !/bin/sh # Start the infrakit plugins, save their PID global INFRAKIT_HOME := ""~/.infrakit global IK_PLUGINS := "$INFRAKIT_HOME/plugins" rm -rf $INFRAKIT_HOME mkdir -p $INFRAKIT_HOME/cli infrakit-flavor-vanilla & infrakit-instance-hyperkit & infrakit-instance-gcp --project $CLOUDSDK_CORE_PROJECT --zone $CLOUDSDK_COMPUTE_ZONE & # start the group plugin in the foreground. If it exits, it will take # the others down as well. infrakit-group-default rm -rf $INFRAKIT_HOME (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:INFRAKIT_HOME) op: Equal rhs: {(TildeSubPart prefix:"") (/.infrakit)} spids: [8] ) ] spids: [8] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:IK_PLUGINS) op: Equal rhs: {($ VSub_Name "$INFRAKIT_HOME") (/plugins)} spids: [12] ) ] spids: [12] ) (C {(rm)} {(-rf)} {($ VSub_Name "$INFRAKIT_HOME")}) (C {(mkdir)} {(-p)} {($ VSub_Name "$INFRAKIT_HOME") (/cli)}) (Sentence child:(C {(infrakit-flavor-vanilla)}) terminator:) (Sentence child:(C {(infrakit-instance-hyperkit)}) terminator:) (Sentence child: (C {(infrakit-instance-gcp)} {(--project)} {($ VSub_Name "$CLOUDSDK_CORE_PROJECT")} {(--zone)} {($ VSub_Name "$CLOUDSDK_COMPUTE_ZONE")} ) terminator: ) (C {(infrakit-group-default)}) (C {(rm)} {(-rf)} {($ VSub_Name "$INFRAKIT_HOME")}) ] )