Skip to content

Commit 36607fa

Browse files
committed
fix(builder): remove repetitive "no file" output
and add a progress indicator. @smothiki is this what you’re talking about?
1 parent 9b741c2 commit 36607fa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

rootfs/etc/confd/templates/builder

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,21 @@ kubectl --namespace=$POD_NAMESPACE create -f /etc/${SLUG_NAME}.yaml
141141

142142
if [[ "$REMOTE_STORAGE" == "1" ]]; then
143143
LS_CMD="$MC_PREFIX ls $PUSH_URL"
144+
echo "Waiting for build to complete..."
144145
until $LS_CMD &> /dev/null; do
145-
echo "no file"
146+
echo -ne "."
146147
sleep 2
147148
done
148149
else
150+
echo -ne "Waiting for build to complete..."
149151
while [ ! -f /apps/${SLUG_NAME}/slug.tgz ]
150152
do
153+
echo -ne "."
151154
sleep 2
152-
echo "no file"
153155
done
154156
fi
157+
echo ""
158+
echo "Build complete."
155159

156160
URL="http://$DEIS_WORKFLOW_SERVICE_HOST:$DEIS_WORKFLOW_SERVICE_PORT/v2/hooks/config"
157161
RESPONSE=$(get-app-config -url="$URL" -key="{{ getv "/deis/controller/builderKey" }}" -user=$USER -app=$APP_NAME)

0 commit comments

Comments
 (0)