Created
October 24, 2019 09:10
-
-
Save aureamunoz/1b0e0dfc77dd94d9fbd813c78d3ccf5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1- Cuando creo un cp a partir de un proyecto existente | |
| hal component create fruit-backend-sb | |
| ? Runtime spring-boot | |
| ? Version 2.1.6.RELEASE | |
| ? Expose microservice Yes | |
| ? Port 8080 | |
| ? Use code generator No | |
| ❯ Selected local component directory: fruit-backend-sb | |
| ? Env variable in the 'name=value' format, simply press enter when finished | |
| ❯ Selected Name: fruit-backend-sb | |
| ✓ Successfully created 'fruit-backend-sb' component | |
| amunozhe ~ git demo oc get cp | |
| NAME RUNTIME VERSION AGE MODE STATUS MESSAGE REVISION | |
| fruit-backend-sb spring-boot 2.1.6.RELEASE 5s dev Ready Ready | |
| amunozhe ~ git demo 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/amunozhe/git/demo/fruit-backend-sb.tar | |
| ✓ Cleaning up component | |
| ✓ Extracting source on the remote cluster | |
| ✓ Performing build | |
| ✓ Restarting app | |
| ✓ Successfully pushed 'fruit-backend-sb' component to remote cluster | |
| amunozhe ~ git demo oc get cp | |
| NAME RUNTIME VERSION AGE MODE STATUS MESSAGE REVISION | |
| fruit-backend-sb spring-boot 2.1.6.RELEASE 17m dev Ready Ready: 'PodName' changed to 'fruit-backend-sb-78d67d99c6-q6brx' 8fdf7afb9538f6cbc4a11977cf66f3cac6a82f1b | |
| 2- Creation de cp con el code generator | |
| hal component create greeting | |
| ? Runtime spring-boot | |
| ? Version 2.1.6.RELEASE | |
| ? Expose microservice Yes | |
| ? Port 8080 | |
| ? Use code generator Yes | |
| ? Group Id dev.snowdrop | |
| ? Artifact Id myproject | |
| ? Version 1.0.0-SNAPSHOT | |
| ? Package name dev.snowdrop.myproject | |
| ? Env variable in the 'name=value' format, simply press enter when finished | |
| ❯ Selected Name: greeting | |
| ✓ Successfully created 'greeting' component | |
| amunozhe ~ git demo oc get cp | |
| NAME RUNTIME VERSION AGE MODE STATUS MESSAGE REVISION | |
| fruit-backend-sb spring-boot 2.1.6.RELEASE 23m dev Ready Ready: 'PodName' changed to 'fruit-backend-sb-78d67d99c6-q6brx' 8fdf7afb9538f6cbc4a11977cf66f3cac6a82f1b | |
| greeting spring-boot 2.1.6.RELEASE 1m dev Ready Ready: 'PodName' changed to 'greeting-74478c66bd-2v6c5' | |
| amunozhe ~ git demo ll | |
| total 16 | |
| 8552992 2 drwxrwxr-x. 7 amunozhe amunozhe 1024 Oct 23 16:44 . | |
| 8519818 2 drwxrwxr-x. 40 amunozhe amunozhe 1024 Oct 23 16:15 .. | |
| 8553919 2 drwxrwxr-x. 3 amunozhe amunozhe 1024 Oct 23 15:27 another-client-fruit-sb | |
| 8651270 2 drwxrwxr-x. 3 amunozhe amunozhe 1024 Oct 23 15:15 fruit-backend-sb | |
| 8651378 2 drwxrwxr-x. 3 amunozhe amunozhe 1024 Oct 23 16:44 greeting | |
| 8651295 2 drwxrwxr-x. 3 amunozhe amunozhe 1024 Oct 23 15:57 greeting-service | |
| 8553918 2 -rw-rw-r--. 1 amunozhe amunozhe 604 Oct 23 14:57 pom.xml | |
| 8651321 2 drwxrwxr-x. 4 amunozhe amunozhe 1024 Oct 23 15:59 quarkus-cp | |
| amunozhe ~ git demo hal component push -c greeting | |
| Local changes detected for 'greeting' component: about to push source code to remote cluster | |
| ✓ Uploading /home/amunozhe/git/demo/greeting.tar | |
| ✓ Cleaning up component | |
| ✓ Extracting source on the remote cluster | |
| ✓ Performing build | |
| ✓ Restarting app | |
| ✓ Successfully pushed 'greeting' component to remote cluster | |
| amunozhe ~ git demo | |
| 3- Create client cp with generator: | |
| hal component create client-sb | |
| ? Runtime spring-boot | |
| ? Version 2.1.6.RELEASE | |
| ? Expose microservice No | |
| ? Use code generator Yes | |
| ? Group Id dev.snowdrop | |
| ? Artifact Id myproject | |
| ? Version 1.0.0-SNAPSHOT | |
| ? Package name dev.snowdrop.myproject | |
| ? Env variable in the 'name=value' format, simply press enter when finished | |
| ❯ Selected Name: client-sb | |
| ✓ Successfully created 'client-sb' component | |
| amunozhe ~ git demo oc get cp | |
| NAME RUNTIME VERSION AGE MODE STATUS MESSAGE REVISION | |
| client-sb spring-boot 2.1.6.RELEASE 5s dev Failed failed to create or update Component 'client-sb': Service "client-sb" is invalid: [spec.ports[0].port: Invalid value: 0: must be between 1 and 65535, inclusive, spec.ports[0].targetPort: Invalid value: 0: must be between 1 and 65535, inclusive] | |
| 4 - Create client from generator and scaffolding | |
| hal component create client-sb -s true | |
| ? Runtime spring-boot | |
| ? Version 2.1.6.RELEASE | |
| ? Expose microservice No | |
| ? Group Id dev.snowdrop | |
| ? Artifact Id myproject | |
| ? Version 1.0.0-SNAPSHOT | |
| ? Package name dev.snowdrop.myproject | |
| ? Env variable in the 'name=value' format, simply press enter when finished | |
| ❯ Selected Name: client-sb | |
| ✓ Successfully created 'client-sb' component | |
| amunozhe ~ git demo hal component push -c client-sb | |
| Local changes detected for 'client-sb' component: about to push source code to remote cluster | |
| ✗ Waiting for component client-sb to be ready… | |
| ✗ error running push: error waiting for component: 'client-sb' component's status is Failed: failed to create or update Component 'client-sb': Deployment.apps "client-sb" is invalid: [spec.template.spec.volumes[1].persistentVolumeClaim.claimName: Required value, spec.template.spec.volumes[1].name: Required value, spec.template.spec.containers[0].ports[0].containerPort: Required value, spec.template.spec.containers[0].volumeMounts[1].name: Required value, spec.template.spec.containers[0].volumeMounts[1].name: Not found: "", spec.template.spec.containers[0].volumeMounts[2].name: Required value, spec.template.spec.containers[0].volumeMounts[2].name: Not found: "", spec.template.spec.containers[0].volumeMounts[3].name: Required value, spec.template.spec.containers[0].volumeMounts[3].name: Not found: ""] | |
| amunozhe ~ git demo 1 oc get components | |
| NAME RUNTIME VERSION AGE MODE STATUS MESSAGE REVISION | |
| client-sb spring-boot 2.1.6.RELEASE 26m dev Failed failed to create or update Component 'client-sb': Deployment.apps "client-sb" is invalid: [spec.template.spec.volumes[1].persistentVolumeClaim.claimName: Required value, spec.template.spec.volumes[1].name: Required value, spec.template.spec.containers[0].ports[0].containerPort: Required value, spec.template.spec.containers[0].volumeMounts[1].name: Required value, spec.template.spec.containers[0].volumeMounts[1].name: Not found: "", spec.template.spec.containers[0].volumeMounts[2].name: Required value, spec.template.spec.containers[0].volumeMounts[2].name: Not found: "", spec.template.spec.containers[0].volumeMounts[3].name: Required value, spec.template.spec.containers[0].volumeMounts[3].name: Not found: ""] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment