Skip to content

Commit 1bb9a81

Browse files
committed
add cli support for running containerless components
1 parent 42af7fd commit 1bb9a81

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/scripts/claimed

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ else
6767
echo "CLAIMED_CONTAINERLESS_OPERATOR_PATH not set, aborting"
6868
exit 1
6969
else
70-
70+
containerlesscomponentpath=`sed "s/containerless//g" <<< "$image"`
71+
containerlesscomponentpath=`sed "s/:/./g" <<< "$containerlesscomponentpath"`
72+
containerlesscomponent=$containerlesscomponentpath"/runnable.py"
73+
command="python "$CLAIMED_CONTAINERLESS_OPERATOR_PATH"/"$containerlesscomponent" "$envs
74+
echo "Executing: "$command
75+
source $CLAIMED_CONTAINERLESS_OPERATOR_PATH'/'$containerlesscomponentpath"/claimedenv/bin/activate"
76+
chmod 755 $CLAIMED_CONTAINERLESS_OPERATOR_PATH"/"$containerlesscomponent
77+
$command
7178
fi
7279
fi

0 commit comments

Comments
 (0)