Environment¶
Show Environments¶
1 | jx get environments |
Make a PR¶
Create New Branch¶
1 | git checkout -b helloworld-controller |
Add Model¶
1 2 3 4 5 6 7 8 9 10 11 12 | public class Greeting { private String greeting; public Greeting(String greeting) { this.greeting = greeting; } public String getGreeting() { return greeting; } } |
Add controller¶
1 2 3 4 5 6 7 8 | @RestController @RequestMapping("/hello") public class HelloWorldController { @GetMapping public Greeting hello() { return new Greeting("Hello Devoxx!"); } } |
Make the PR¶
1 2 | git add src/ git commit -m "add helloworld controller" |
1 | git push --set-upstream origin helloworld-controller |
1 | jx create pullrequest --title "my PR" --body "What are we doing" --batch-mode |
1 | jx get activity -f jx-qs-spring-boot -w |
1 | jx get build log |
1 | http http://jx-qs-spring-boot-7.jx-joostvdg-jx-qs-spring-boot-7-pr-1.dev.cjxd.kearos.net/hello |
Promote to production¶
- show environments:
jx get environments
- look at
KIND
andPROMOTE
- look at
- show repository
1 | jx get applications -e staging |
1 | jx get applications -e production |
1 | jx promote jx-qs-spring-boot-7 --env production --version |
1 | jx get activity -f env-cjxd-prod -w |
1 | jx ui -p 8082 |
1 | jx get applications -e production |
Add PR¶
- show applications:
jx get applications
- show environments:
jx get environments
git checkout -b helloworld-controller
- make changes
git push --set-upstream origin helloworld-controller
- create pull request
jx create pullrequest --title "my PR" --body "What are we doing" --batch-mode
- open URL of pull request
- add
/meow
- add
/assign @joostvdg
- add
/lgtm
- watch activity
jx get activity -f jx-qs-spring-boot-1 -w
- look for Preview in GitHub PR page
- show namespaces:
kubectl get namespaces
- approve PR & merge