Skip to content

Commit

Permalink
fix: Add warning to explain why we must wait when we push
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoulliard committed Oct 11, 2019
1 parent 2d9aee1 commit 825259b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions modules/01_scenario/02_scenario_Lab.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -611,16 +611,17 @@ Local changes detected for 'fruit-client-sb' component: about to push source cod
✓ Successfully pushed 'fruit-client-sb' component to remote cluster
----

. WARNING: if, for any reason, the push fails, you can try to play yourself the commands snippet hereafter and executed under the hood by `hal`
. WARNING: As, the command wait till the maven is finished before to re-start the Pod running our application, then it will hangs
+
----
PROJECT=fruit-client-sb
NAMESPACE=$LAB_NAME
POD_ID=$(oc get pod -lapp=$PROJECT -n $NAMESPACE -o name | awk -F '/' '{print $2}')
oc cp $PROJECT/pom.xml $POD_ID:/usr/src/ -n $NAMESPACE
oc cp $PROJECT/src $POD_ID:/usr/src/ -n $NAMESPACE
oc exec $POD_ID -n $NAMESPACE /var/lib/supervisord/bin/supervisord ctl start build
oc exec $POD_ID -n $NAMESPACE /var/lib/supervisord/bin/supervisord ctl start run
hal component push -c fruit-backend-sb
Local changes detected for 'fruit-backend-sb' component: about to push source code to remote cluster
✓ Uploading /home/lab-user/halkyon-fruit/fruit-backend-sb.tar
✓ Extracting source on the remote cluster
✓ Performing build
... wait till build is fnished before to continue !!
✓ Restarting app
✓ Successfully pushed 'fruit-backend-sb' component to remote cluster
----

. Push the `fruit-backend-sb`:
Expand Down

0 comments on commit 825259b

Please sign in to comment.