Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

466 testing gui #548

Open
wants to merge 311 commits into
base: takeoff_develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
b22cfd7
328-create-share-business-logic (#376)
airherna Nov 17, 2022
3e60d3c
List projects for Google Cloud (#378)
airherna Nov 17, 2022
2efbeb0
Added success dialog in init account
econesag Nov 17, 2022
d2df14a
Merge remote-tracking branch 'origin/takeoff_develop' into 327-init-a…
econesag Nov 17, 2022
93fe117
Add import of cloud_provider_id, and reset channel on close
econesag Nov 17, 2022
9d03345
336-clean-share-business-logic (#379)
airherna Nov 18, 2022
a7b9e11
List projects from CLI (#380)
airherna Nov 18, 2022
12e1132
Refactor of home page
econesag Nov 18, 2022
b0e2ae8
Make AutoClosingDialog stateful for dispose timer when testing
econesag Nov 18, 2022
10e2155
Merge remote-tracking branch 'origin/takeoff_develop' into 327-init-a…
econesag Nov 18, 2022
8c44f72
Update enable-firebase.sh
capf4bbo Nov 18, 2022
5756c8d
Setting accounts default value as empty string instead of using null
econesag Nov 18, 2022
b79d18f
Added tests
econesag Nov 18, 2022
8da36b5
Clean project CLI in Google Cloud (#381)
airherna Nov 18, 2022
55948f4
Create in Google Cloud from the CLI (#382)
airherna Nov 18, 2022
aca1ed5
Merge remote-tracking branch 'origin/takeoff_develop' into 327-init-a…
econesag Nov 18, 2022
bfeaea7
Move mockito to dev dependencies
econesag Nov 18, 2022
a21ec89
Merge pull request #384 from devonfw/327-init-account-gui
airherna Nov 18, 2022
635c9b5
Get user accounts at startup and test updated
econesag Nov 18, 2022
1266f6c
Update enable-firebase.sh
capf4bbo Nov 21, 2022
4513538
Docs added
capf4bbo Nov 21, 2022
b6b4c1e
Automatic generation of documentation
capf4bbo Nov 21, 2022
91a2701
Update setup-firebase.sh
capf4bbo Nov 21, 2022
ab73621
Merge branch 'feature/sp4-346-automate-firebase-resources-creation' o…
capf4bbo Nov 21, 2022
d4a946f
Update setup-firebase.asciidoc
capf4bbo Nov 21, 2022
97d9f89
Automatic generation of documentation
capf4bbo Nov 21, 2022
16cd958
Update setup-firebase.sh
capf4bbo Nov 21, 2022
c6960fe
Merge branch 'feature/sp4-346-automate-firebase-resources-creation' o…
capf4bbo Nov 21, 2022
126a21a
Update setup-firebase.asciidoc
capf4bbo Nov 21, 2022
56d5596
Automatic generation of documentation
capf4bbo Nov 21, 2022
7fbd93e
First Steps with create dialog, add color to custom floating button
econesag Nov 21, 2022
82e7ee8
Add reset form when closing
econesag Nov 21, 2022
2b50ea3
update Init updates all cloud providers
econesag Nov 21, 2022
574cc42
Update test
econesag Nov 21, 2022
006bca5
Merge pull request #393 from devonfw/388-check-already-logged-account…
airherna Nov 21, 2022
94aa7ae
Manage language version, add toString method in Language class and re…
econesag Nov 21, 2022
aef8d50
Avoid closing the dialog when clicking outside of it
econesag Nov 21, 2022
8283c37
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 21, 2022
9782ba1
update gitignore to avoid launch.json
econesag Nov 21, 2022
82f05fe
Migrated to cloud subcommands (#395)
airherna Nov 21, 2022
12320ed
Listing projects when call updateInitAccounts
econesag Nov 21, 2022
9ddcb9b
Added package to control minimun screen size
econesag Nov 21, 2022
8740d7f
Added loading page and error page when initializing app
econesag Nov 21, 2022
21ab8d3
Merge pull request #399 from devonfw/338-list-gui
airherna Nov 22, 2022
7a017f5
Merge pull request #400 from devonfw/387-set-minimum-app-widthheight
airherna Nov 22, 2022
2dde55c
Merge pull request #401 from devonfw/385-check-if-docker-is-installed…
airherna Nov 22, 2022
cb8730e
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 22, 2022
b012659
updated language and versiosn
econesag Nov 22, 2022
4841091
Add logout method and refactor getAccount
econesag Nov 22, 2022
b9da309
Add testing
econesag Nov 22, 2022
f7ac1d2
Keystore, sha keys and web map api service
capf4bbo Nov 22, 2022
7263758
Merge branch 'master' into feature/sp4-346-automate-firebase-resource…
capf4bbo Nov 22, 2022
13ac545
Merge pull request #403 from devonfw/391-log-out-lib
airherna Nov 22, 2022
c79471c
Log out from gui
econesag Nov 22, 2022
85d1ff5
Update setup-firebase.sh
capf4bbo Nov 22, 2022
278d89f
377-create-shared-business-logic-finish-the-qa-+-package-pipeline (#398)
airherna Nov 22, 2022
365629d
Add await in logout updateinitAccounts and updated test
econesag Nov 22, 2022
1484788
Merge remote-tracking branch 'origin/takeoff_develop' into 389-log-ou…
econesag Nov 22, 2022
36a0ef4
Removes switch from initAccount and logOut methods from controller in…
econesag Nov 22, 2022
da568c5
Update test and add coverage file and pubspec.lock to gitignore
econesag Nov 22, 2022
01d23a1
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 22, 2022
dec4035
Using enums for cloud and CICD providers
econesag Nov 22, 2022
2b7a240
fix flutter pipelines (#409)
airherna Nov 23, 2022
88afa53
Merge branch 'takeoff_develop' into 389-log-out-gui
airherna Nov 23, 2022
20f581d
Merge pull request #408 from devonfw/389-log-out-gui
airherna Nov 23, 2022
9e59db5
Update scripts/accounts/gcloud/create-project.sh
lpinon Nov 23, 2022
7954a77
Update scripts/accounts/gcloud/setup-firebase.sh
lpinon Nov 23, 2022
4b847a0
Update documentation/src/firebase/setup-firebase.asciidoc
lpinon Nov 23, 2022
10974d5
Automatic generation of documentation
lpinon Nov 23, 2022
d82cab8
Update scripts/accounts/gcloud/setup-firebase.sh
lpinon Nov 23, 2022
d936ec9
Show steps when creating project and open or close the window on erro…
econesag Nov 23, 2022
538053f
Merge remote-tracking branch 'origin/takeoff_develop' into 340-create…
econesag Nov 23, 2022
8ea22c5
Avoid overflow using single child scroll view
econesag Nov 23, 2022
a9725d2
Avoid hide creating project dialog, reset form after open project and…
econesag Nov 23, 2022
45c90d8
Add /mnt directory to root directory in getVolumeMappings
econesag Nov 23, 2022
fc24e4c
Add /mnt to root directory in getVolumeMappings in rancher controller
econesag Nov 23, 2022
f7d1964
Merge pull request #414 from devonfw/407-issue-with-characters-c-in-v…
airherna Nov 23, 2022
3a6143e
Save project on DB only on succesful creation (#413)
airherna Nov 23, 2022
d272e30
verify create form and hide create and quickstart buttons if user is …
econesag Nov 23, 2022
fe59a91
Set onPressed as null instead of hide the button
econesag Nov 23, 2022
de1a135
Update test
econesag Nov 23, 2022
8b58a5d
fixed typo
airherna Nov 23, 2022
0575d5d
Block Create button if using repo and cloud provider different than g…
econesag Nov 23, 2022
c6633f8
Solve hot reload exception when registering singletons
econesag Nov 23, 2022
b5caa08
Merge pull request #415 from devonfw/340-create-gui
airherna Nov 23, 2022
6053e25
332-quick-start-shared-business-logic (#420)
airherna Nov 24, 2022
e321b69
Create quickstart dialog and controller and added images for wayat
econesag Nov 24, 2022
5ba6a65
Support for nerdctl (#422)
airherna Nov 24, 2022
1dcc561
Do not save duplicate projects on Google Cloud cache (#423)
airherna Nov 24, 2022
8962ce3
errors fix
capf4bbo Nov 24, 2022
a1ffb3e
Added form fields in quickstart dialog
econesag Nov 24, 2022
de70afc
Merge remote-tracking branch 'origin/takeoff_develop' into 321-quick-…
econesag Nov 24, 2022
aca47fa
Fix create in containerd with nerdctl (#427)
airherna Nov 24, 2022
73c0222
Refactor of Monitor Dialog and Custom button
econesag Nov 24, 2022
b6afe2e
Merge branch 'takeoff_develop' into 321-quick-start-gui
airherna Nov 24, 2022
f42ed0d
Merge pull request #428 from devonfw/321-quick-start-gui
airherna Nov 24, 2022
7a28734
Avoid listing projects if the list is empty
econesag Nov 24, 2022
6c418b2
Merge pull request #432 from devonfw/429-whitespace-listing-projects
airherna Nov 25, 2022
bb83815
331-run-share-business-logic-cli (#434)
airherna Nov 25, 2022
c3c50fa
Modeled wayat backend script (#437)
airherna Nov 25, 2022
daa4af0
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 25, 2022
ba2225d
Set default project
lpinon Nov 25, 2022
77f4549
Hotfix disable not working steps !int
lpinon Nov 28, 2022
c0edb8d
Clean GUI & Run Gui (#439)
econesag Nov 28, 2022
8950229
Rename firebase.json to disable conflicts
lpinon Nov 28, 2022
78a5c44
Change text button
econesag Nov 28, 2022
5522b8a
Added pop up and clean dialog
econesag Nov 28, 2022
ccf0dc3
Merge pull request #446 from devonfw/440-add-dialog-to-confirm-clean
airherna Nov 28, 2022
08d7cf5
Merge pull request #444 from devonfw/436-change-quickstart-form-creat…
airherna Nov 28, 2022
568da76
Create only backend or frontend (#445)
airherna Nov 28, 2022
e21045c
Avoid warning flutter using expanded
econesag Nov 28, 2022
37d5026
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
capf4bbo Nov 28, 2022
0019d5f
Fix for sha keys
capf4bbo Nov 28, 2022
9f5c2d5
Refactor Form inside create
econesag Nov 28, 2022
dbfc8cf
Fix bad state: stdin was already listened to (#447)
airherna Nov 29, 2022
c2dc6f6
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 29, 2022
d0ea861
Automatic generation of documentation
lpinon Nov 29, 2022
0c350d5
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
capf4bbo Nov 29, 2022
e5abfa2
Merge branch '402-automate-firebase-resources-creation-v2' of https:/…
capf4bbo Nov 29, 2022
4a901a2
Update setup-firebase.sh
capf4bbo Nov 29, 2022
a960e6d
Refactor Flags Parsing
lpinon Nov 29, 2022
4ec0763
Update setup-firebase.sh
capf4bbo Nov 29, 2022
e19daa9
Merge branch '402-automate-firebase-resources-creation-v2' of https:/…
lpinon Nov 29, 2022
b870f26
Check Firebase CLI if Firebase Project
lpinon Nov 29, 2022
ba697fd
Create Firebase Project using Firebase CLI
lpinon Nov 29, 2022
53b85dc
Merge pull request #451 from devonfw/441-refactor-create-form-by-prov…
airherna Nov 29, 2022
eb00b68
Create Firebase Project using Firebase CLI
lpinon Nov 29, 2022
64a49a5
Delete setup-firebase.asciidoc
lpinon Nov 29, 2022
d6bfed8
Firebase Documentation
lpinon Nov 29, 2022
62077e9
Add Firebase Project flag
lpinon Nov 29, 2022
0288082
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 30, 2022
74132ab
Merge branch '402-automate-firebase-resources-creation-v2' of https:/…
capf4bbo Nov 30, 2022
d64f48e
Sprint 1 command's state docs and fix quickstart help (#452)
airherna Nov 30, 2022
d26ddc0
455 business logic folder restructure (#457)
airherna Nov 30, 2022
7f90d45
Remove autogenerated files
econesag Nov 30, 2022
9c9560a
Remove autogenerated files in lib
econesag Nov 30, 2022
fdfc9ca
Updated .gitignore
airherna Nov 30, 2022
e88505e
Merge master into int
github-actions[bot] Nov 30, 2022
291362c
Merge feature/201_Automatic_Setup_QA_engine_in_Google_Cloud into int
github-actions[bot] Nov 30, 2022
8915708
gke-setup
mcerverc Nov 30, 2022
c7cdf39
Update setup-firebase.asciidoc
lpinon Nov 30, 2022
f94d814
!int
ultymatom Nov 30, 2022
b0e428c
Merge feature/tmp/manage_secret_merge_int into int
github-actions[bot] Nov 30, 2022
8b0da30
!int
ultymatom Nov 30, 2022
8f0baae
Merge branch 'master' into 402-automate-firebase-resources-creation-v2
lpinon Nov 30, 2022
06f67d0
!int
ultymatom Nov 30, 2022
dca150c
Merge feature/tmp/gke-deploy_merge_int into int
github-actions[bot] Nov 30, 2022
10f7295
!int
lpinon Nov 30, 2022
103abbe
Merge branch '402-automate-firebase-resources-creation-v2' into int
lpinon Nov 30, 2022
ce877c4
Quickstart Scripts
lpinon Nov 30, 2022
10e64e9
Merge branch 'feature/quickstart-backend-wayat' into int
lpinon Nov 30, 2022
646ffa3
Quickstart Frontend
lpinon Nov 30, 2022
c8fc929
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Nov 30, 2022
f55c51a
Fix creation service account
lpinon Nov 30, 2022
4a707df
Update scripts/quickstart/gcloud/quickstart-wayat-frontend.sh
capf4bbo Dec 1, 2022
60df356
Update cors
capf4bbo Dec 1, 2022
c32d782
Update quickstart-wayat-frontend.sh
capf4bbo Dec 1, 2022
6df0529
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
c340c9d
Merge master into int
github-actions[bot] Dec 1, 2022
2a72624
Add Cors step
lpinon Dec 1, 2022
f47eed0
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
68cb9e5
Fix unix line ending
lpinon Dec 1, 2022
d7b1422
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
5ebf353
Merge branch 'master' into feature/quickstart-frontend-wayat
lpinon Dec 1, 2022
3a31f69
Merge master into int
github-actions[bot] Dec 1, 2022
01b56bd
Merge master into int
github-actions[bot] Dec 1, 2022
495b6ce
resolve miguel conflicts
Jorge-Dacal Dec 1, 2022
5a8c925
Merge branch 'int' of https://github.com/devonfw/hangar into int
Jorge-Dacal Dec 1, 2022
d337e57
Fixed FrontendURL for CORS
lpinon Dec 1, 2022
d1be739
Merge branch 'feature/quickstart-frontend-wayat' into int
lpinon Dec 1, 2022
5e0a73c
Added GuiMessage to domain an its dependencies
econesag Dec 1, 2022
767467f
fix quickstart export and resolved merge conflicts
Jorge-Dacal Dec 1, 2022
68d24dd
Merge branch 'int' of https://github.com/devonfw/hangar into int
Jorge-Dacal Dec 1, 2022
16951df
Add infoStream and inputStream to comunicate GUI and Logic
econesag Dec 1, 2022
53007b3
Merge pull request #474 from devonfw/458-dynamic-dialog-when-monitori…
airherna Dec 1, 2022
5d2e7bb
Merge master into int
github-actions[bot] Dec 1, 2022
626f93d
recover ! in if of deploy-cloud-run-setup-environment.sh and add . or…
Jorge-Dacal Dec 2, 2022
382d5ac
Merge branch 'int' of https://github.com/devonfw/hangar into int
Jorge-Dacal Dec 2, 2022
656177f
add endline in file package-setup-environment.sh
Jorge-Dacal Dec 2, 2022
911a2c8
add doblequotes to the sed commands in setupPackageName in quickstart…
Jorge-Dacal Dec 2, 2022
687ead7
Merge remote-tracking branch 'origin/int' into takeoff_develop
airherna Dec 2, 2022
53a62d1
Add buttons to access to GUI resources
serhiibets Dec 2, 2022
2e95a4e
Add _launchUrl
serhiibets Dec 7, 2022
38293ce
Update pubspec.yaml
serhiibets Dec 7, 2022
b66d02e
add test url links
serhiibets Dec 7, 2022
293f25f
Change url
serhiibets Dec 9, 2022
c44435b
Update url
serhiibets Dec 9, 2022
b705f54
Fix issues of reviewer
serhiibets Dec 12, 2022
a88497f
Fix issues of reviewer
serhiibets Dec 12, 2022
4d54004
Fixed issues of reviewer
serhiibets Dec 13, 2022
a40028a
modified error loading page
josuecapgemini Dec 13, 2022
e20808e
Delete url_launcher from lib
serhiibets Dec 13, 2022
503eee2
Changed error message and text alignment
airherna Dec 13, 2022
8043b3f
Add url_launcher to GUI
serhiibets Dec 13, 2022
4b944da
Merge pull request #493 from devonfw/460-calm-down-the-docker-not-run…
airherna Dec 13, 2022
f4ed2ca
Merge remote-tracking branch 'origin/takeoff_develop' into 324-access…
airherna Dec 13, 2022
be82403
471 Finish Quickstart and fix issues with GUI communication (#478)
airherna Dec 14, 2022
6936d54
Fixed UI issues
serhiibets Dec 14, 2022
ec9c252
Merge branch 'takeoff_develop' into 324-access-resources-gui
serhiibets Dec 14, 2022
b0864e3
Fix IDE url
serhiibets Dec 14, 2022
84317cd
Update link
serhiibets Dec 14, 2022
9dfbe40
Merge pull request #482 from devonfw/324-access-resources-gui
airherna Dec 14, 2022
78c20a6
467 testing lib (#490)
josuecapgemini Dec 14, 2022
dfd3370
465 multi language support (#500)
josuecapgemini Dec 16, 2022
dae65a1
add error_loading_test
serhiibets Dec 19, 2022
e025e97
add icon_text_button test
serhiibets Dec 19, 2022
56e4852
add loading_page test
serhiibets Dec 19, 2022
5ca4ae6
325 access resources cli (#499)
serhiibets Dec 20, 2022
4b3d111
Hangar image addition (#518)
capf4bbo Dec 20, 2022
b6233c0
392 mouse wheel scroll (#511)
josuecapgemini Dec 20, 2022
9e82083
Fix url and app icon added (#519)
capf4bbo Dec 20, 2022
9c33833
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 21, 2022
643330e
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 21, 2022
d3586a0
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 22, 2022
c93a12a
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 22, 2022
092dceb
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
4fed43e
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
f890a07
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
9c0d59e
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 26, 2022
8e4ad36
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 27, 2022
6d5dcb5
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 27, 2022
24c4d9d
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 27, 2022
b9eb2b1
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 27, 2022
f305c0d
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 28, 2022
393f12f
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 28, 2022
79d9f22
Move files to common folder
serhiibets Dec 28, 2022
b2fdda5
Add project_detailes tests
serhiibets Dec 28, 2022
ab7e3db
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
serhiibets Dec 28, 2022
afc3471
Merge branch 'takeoff_develop' into 466-testing-gui
serhiibets Dec 28, 2022
08c4919
Fixed tests in project_detailes.dart
serhiibets Dec 28, 2022
ada54b3
Add clean_dialog tests
serhiibets Dec 28, 2022
f4f0437
Commit
serhiibets Dec 28, 2022
a208ccc
Fixed google form region test
airherna Dec 28, 2022
05ed035
Add create controller tests
serhiibets Dec 29, 2022
2e4c456
Add create_dialog tests
serhiibets Dec 29, 2022
d858340
Add google_form_controller tests
serhiibets Dec 29, 2022
bae7add
Ignore
serhiibets Dec 29, 2022
eba08a2
Add create_message tests
serhiibets Dec 29, 2022
4d6f860
Add quickstart_controller test
serhiibets Dec 29, 2022
864886e
Ignore
serhiibets Dec 29, 2022
37de896
Add quickstart_dialog tests
serhiibets Dec 29, 2022
b270391
Add monitor_controller tests
serhiibets Dec 29, 2022
8d799b1
Add user_interaction tests
serhiibets Dec 29, 2022
f2df136
Fix test error
serhiibets Dec 29, 2022
1856bcc
Add file generate_coverage
serhiibets Dec 29, 2022
4e3a23b
Add tests to monitorController
serhiibets Dec 30, 2022
1f57d7f
Add tests to repo_selector
serhiibets Dec 30, 2022
f2f7b41
Clean unused libraries
serhiibets Dec 30, 2022
901a131
Add tests to monitor_dialog
serhiibets Dec 30, 2022
3ab4ef0
revert createProject changes
airherna Jan 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'takeoff_develop' of https://github.com/devonfw/hangar i…
…nto takeoff_develop
serhiibets committed Dec 21, 2022
commit 9c3383352e0756f5a585ee11edc6102dd298b374
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ takeoff/takeoff_gui/.vscode/launch.json
takeoff/takeoff_gui/pubspec.lock
takeoff/takeoff_cli/bin/takeoff_cli.exe
# VSCode Config
.vscode
.vscode/*

# Terraform files
**/.terraform/**
111 changes: 45 additions & 66 deletions documentation/aws/setup-sonarqube-instance.asciidoc
Original file line number Diff line number Diff line change
@@ -5,14 +5,12 @@
:terraform_tutorials: https://developer.hashicorp.com/terraform/tutorials/aws
:terraform_vars_example_short: --region eu-west-1 --keypair_name sonarqube
:terraform_vars_example_full: --region eu-west-1 --vpc_cidr_block 10.0.0.0/16 --subnet_cidr_block 10.0.1.0/24 --nic_private_ip 10.0.1.50 --instance_type t3a.small --keypair_name sonarqube
:terraform_vars: + \
--region The AWS region where the resources will be created. By default: eu-west-1 + \
--vpc_cidr_block Virtual private network IP range (CIDR). By default: 10.0.0.0/16 + \
--subnet_cidr_block The range of internal addresses that are owned by this subnetwork. Ranges must be unique and non-overlapping within a network. + \
By default: 10.0.1.0/24 + \
--nic_private_ip Instance private IP within subnet range. By default: 10.0.1.50 + \
--instance_type Machine Instance type. By default: t3a.small + \
--keypair_name Keypair name to connect with ssh as defined in AWS. By default: sonarqube
:terraform_vars: --region Region where the resources will be created. Default: eu-west-1 + \
--vpc_cidr_block Virtual private network IP range (CIDR). Default: 10.0.0.0/16 + \
--subnet_cidr_block Range of internal addresses that are owned by this subnetwork. Ranges must be unique and non-overlapping within a network. Default: 10.0.1.0/24 + \
--nic_private_ip Instance private IP within subnet range. Default: 10.0.1.50 + \
--instance_type Machine Instance type. Default: t3a.small + \
--keypair_name Keypair name to connect with SSH as defined in AWS. Default: sonarqube

= Setting up a SonarQube instance in {provider_name}
:toc:
@@ -36,63 +34,65 @@ IMPORTANT: This will create a public key, directly stored in AWS (current region

=== Relevant files

* `./sonarqube.sh` script to automatically do all the steps in only one execution command.
* `main.tf` contains declarative definition written in HCL of AWS infrastructure.
* `./sonarqube.sh` script to automatically do all the steps in one command execution.
* `main.tf` contains declarative definition written in HCL of Cloud infrastructure.
* `../common/setup_sonarqube.sh` script to be run on {container_instance_type} that installs and deploys a container running SonarQube.
* `variables.tf` contains variable definition for `main.tf`.
* `terraform.tfvars` contains values (user-changeable) for the variables defined in `variables.tf`.
* `terraform.tfstate` contains current state of the created infrastructure. It is generated after use it and should be stored securely.
* `set-terraform-variables.sh` assists user in setting the values of `terraform.tfvars`.

== Usage
== SonarQube instance setup

=== Easy usage
=== Quick setup

To make it easier to use for users who do not know terraform, or for those who need only one command to be executed, we have prepared a script that executes all the steps automatically.
To make it easier to use for non-experienced users, or for those who need only one command to be executed, we provide `sonarqube.sh` script that executes all the steps automatically.

==== Usage
```
./sonarqube.sh [command] [flags] [terraform variables]
./sonarqube.sh <command> [flags...] [terraform variables...]
```

*Commands*
==== Commands
```
COMMAND DESCRIPTION
apply Create or update infrastructure
destroy Destroy previously-created infrastructure
output Show output values from your terraform. With output command only one option is readed `--output-key`, all other flags and options are ignored.
If you want to show the output as json, add an option '--output-key --json'.
If you want to recover only one output value add an option '--output-key key' where key is the name of the output var.
apply Creates or updates infrastructure.
destroy Destroys previously created infrastructure.
output Shows output values from Terraform state. Ignores flags other than '--output-key' or '-k'.
To print only one output value use flag '--output-key <key>' where key is the name of the output variable.
```

*Flags*
==== Flags
```
-s, --state-folder The folder where you are going to save/import your terraform configuration."
-k, --output-key [ONLY FOR output] The key of the terraform output variable that you want to recover."
-q, --quiet To not print any command of the script, only the execution of 'terraform command'."
-h, --help Get help for commands."
-s, --state-folder Folder for saving/importing Terraform configuration.
-k, --output-key [ONLY FOR output] Key of a single Terraform output variable to print.
-q, --quiet Suppress output other than the generated by Terraform command.
-h, --help Displays help message.
```

*terraform variables*
==== Terraform variables

These options are variables to be replace by the set-terraform-variables.sh script. You can replace as many as you want of the next:
These variables will be used to update `terraform.tfvars` (using `set-terraform-variables.sh` script). They are ignored in output command. Syntax: '--key value' or '--key=value'.

===== Configurable variables

[subs=attributes+]
```
{terraform_vars}
```

*Examples*
==== Examples

[subs=attributes+]
```
./sonarqube.sh apply --state-folder "path_to_save_state" {terraform_vars_example_short}
./sonarqube.sh apply --state-folder /secure/location {terraform_vars_example_short}

./sonarqube.sh apply --state-folder "path_to_save_state" {terraform_vars_example_full}
./sonarqube.sh apply --state-folder /secure/location {terraform_vars_example_full}
```

WARNING: *Remember to securely store all the content inside the state-folder*, otherwise you will not be able to perform any changes, including detroying them, from Terraform.
CAUTION: *Remember to securely store all the content inside the state folder*, otherwise you will not be able to perform any changes in infrastructure, including destroying it, from Terraform.

=== Expert usage
=== Step-by-step setup

First, you need to initialize the working directory containing Terraform configuration files (located at `/scripts/sonarqube/{provider_path}`) and install any required plugins:

@@ -102,14 +102,14 @@ terraform init

Then, you may need to customize some input variables about the environment. To do so, you can either edit `terraform.tfvars` file or take advantage of the `set-terraform-variables` script, which allows you to create or update values for the required variables, passing them as flags.

You can replace as many as you want of the next:
*Configurable variables:*

[subs=attributes+]
```
{terraform_vars}
```

Examples of usage:
*Examples of usage:*

[subs=attributes+]
```
@@ -118,37 +118,21 @@ Examples of usage:
./set-terraform-variables.sh {terraform_vars_example_full}
```

WARNING: Unless changed, some of the variables used to deploy by default probably do not exist in your environment of {provider_name}.
WARNING: Unless changed, some of the variables used by default probably do not exist in your environment of {provider_name}.

Finally, deploy SonarQube instance:

```
terraform apply --auto-approve
```

WARNING: *Remember to securely store `terraform.tfstate` file*, otherwise you will not be able to perform any changes, including detroying them, from Terraform. More insights https://www.terraform.io/cli/run[here].
CAUTION: *Remember to securely store `terraform.tfstate` file*, otherwise you will not be able to perform any changes in infrastructure, including detroying it, from Terraform. More insights https://www.terraform.io/cli/run[here].

NOTE: `terraform apply` command performs a plan and actually carries out the planned changes to each resource using the relevant infrastructure provider's API. You can use it to perform changes on the created resources later on.

In particular, this will create an Ubuntu-based in {container_instance_type} and deploy a Docker container running SonarQube.

You will get the public url of {container_instance_type} and an admin token to connect with sonar as output. Take note of it, you will need it later on.

==== Manage terraform output
In particular, this will create {container_instance_type} based on Ubuntu and deploy a Docker container running SonarQube.

You can recover all the outputs from terraform after having used apply command using the next command:

```
terraform output
```

Or you can get an specific output value using his key in the command:

```
terraform output $outputKeyName
```

NOTE: Remember that command needs `terraform.tfstate` file to work.
You will get the public URL of the SonarQube instance and an admin token as output. Take note of it, you will need it later on.

==== Destroy SonarQube instance

@@ -160,28 +144,23 @@ terraform destroy

==== Modify SonarQube instance infrastructure

As long as you keep the `terraform.tfstate` file generated when creating the SonarQube instance, you can apply changes to the infrastructure deployed.

If you are going to apply a change in the infrastructure, you will have to modify the terraform files and reapply the changes with the command `terraform apply`.

IMPORTANT: In windows, keep in mind that after applying any changes, you will lose the value of the token so be sure to copy or write it down before applying any changes. To avoid this we have implemented a method but to work you must store the standard terraform output in a file called terraform.tfoutput. This can be done with the following command:
As long as you keep the `terraform.tfstate` file generated when creating the SonarQube instance, you can apply changes to the infrastructure deployed by modifying `main.tf` and executing:

```
terraform output > terraform.tfoutput
terraform apply
```

IMPORTANT: In Windows, when applying any changes, the value of the token is lost if `terraform.tfoutput` does not exist. Be sure you do not skip the first command.

== Change Sonarqube default admin password

After having deployed sonarqube by following this guide, you will be able to access SonarQube web interface on the url provided by terraform output and the following credentials:
After a few minutes, you will be able to access SonarQube web interface on the public URL provided by Terraform output with the following credentials:

* Username: `admin`
* Password: `admin`

IMPORTANT: Change the default password promptly. After that, update the password in terraform vars, you can do it manually or with the next command:

```
./set-terraform-variables.sh --sonarqube_password ${YOUR_NEW_PASSWORD}
```
IMPORTANT: Change the default password promptly. After that, update the password in Terraform configuration: `./set-terraform-variables.sh --sonarqube_password <new password>`.

== Appendix: More information about terraform for {provider_name}
== Appendix: More information about Terraform for {provider_name}
* {terraform_tutorials}[Official Terraform tutorials]
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

In this section we will create a pipeline which will provision an Azure AKS cluster. This pipeline will be configured to be manually triggered by the user. As part of AKS cluster provisioning, a NGINX Ingress controller is deployed and a variable group with the name `aks-variables` is created, which contains, among others, the DNS name of the Ingress controller, that you you will need to add as CNAME record on the domains used in your application Ingress manifest files. Refer to the appendix for more details.

The creation of the pipeline will follow the project workflow, so a new branch named `feature/aks-provisioning` will be created, the YAML file for the pipeline and the terraform files for creating the cluster will be pushed to it.
The creation of the pipeline will follow the project workflow, so a new branch named `feature/aks-provisioning` will be created, the YAML file for the pipeline and the Terraform files for creating the cluster will be pushed to it.

Then, a Pull Request (PR) will be created in order to merge the new branch into the appropiate branch (provided in `-b` flag). The PR will be automatically merged if the repository policies are met. If the merge is not possible, either the PR URL will be shown as output, or it will be opened in your web browser if using `-w` flag.

@@ -104,4 +104,4 @@ kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{

=== Appendix: Destroying the cluster

To destroy the provisioned resources, set `operation` pipeline variable value to `destroy` and run the pipeline.
To destroy the provisioned resources, set `operation` pipeline variable value to `destroy` and run the pipeline.
37 changes: 20 additions & 17 deletions documentation/azure-devops/setup-deploy-pipeline.asciidoc
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
:provider: Azure Devops
:pipeline_type: Pipeline
:trigger_sentence: This pipeline will be configured to be triggered after the package pipeline
:provider: Azure DevOps

:pipeline_type: pipeline
:trigger_sentence: This pipeline will be configured in order to be triggered every time package pipeline is executed successfully on a commit for `release/*` and `develop` branches, requiring manual launch for other branches but still enforcing that package pipeline has passed
:pipeline_type2: pipeline
:path_provider: azure-devops
:openBrowserFlag: -w
= Setting up a Deploy Pipeline on {provider}
= Setting up a Deploy {pipeline_type} on {provider}

In this section we will create a deploy {pipeline_type} on {provider} to deploy the project application on an already provisioned Kubernetes cluster. This pipeline will be configured in order to be triggered every time package {pipeline_type} is executed successfully on a commit for `release/*` and `develop` branches, requiring manual launch for other branches but still enforcing that package {pipeline_type} has passed. By default, it depends on the environment provisioning {pipeline_type} being successfully run on beforehand and, depending on the Kubernetes provider, it consumes the artifact produced by that. It also consumes variable groups created by package and environment provisioning {pipeline_type}.
In this section we will create a deploy {pipeline_type} on {provider} to deploy the project application on an already provisioned Kubernetes cluster. {trigger_sentence}. By default, it depends on the environment provisioning {pipeline_type} being successfully run on beforehand and, depending on the Kubernetes provider, it consumes the artifact produced by that. It also consumes variable groups created by package and environment provisioning {pipeline_type}.

The creation of the pipeline will follow the project workflow, so a new branch named `feature/deploy-pipeline` will be created and the YAML file for the pipeline will be pushed to it.
The creation of the {pipeline_type2} will follow the project workflow, so a new branch named `feature/deploy-pipeline` will be created and the YAML file for the {pipeline_type} will be pushed to it.

Then, a Pull Request (PR) will be created in order to merge the new branch into the appropriate branch (provided in `-b` flag). The PR will be automatically merged if the repository policies are met. If the merge is not possible, either the PR URL will be shown as output, or it will be opened in your web browser if using `-w` flag.

The script located at `/scripts/pipelines/{path_provider}/pipeline_generator.sh` will automatically create the new branch, create a deploy pipeline based on a YAML template appropriate for the project manifests files, create the Pull Request, and if it is possible, merge this new branch into the specified branch.
The script located at `/scripts/pipelines/{path_provider}/pipeline_generator.sh` will automatically create the new branch, create a deploy {pipeline_type} based on a YAML template appropriate for the project manifests files, create the Pull Request, and if it is possible, merge this new branch into the specified branch.


== Prerequisites

@@ -27,31 +29,32 @@ The script located at `/scripts/pipelines/{path_provider}/pipeline_generator.sh`
```
pipeline_generator.sh \
-c <config file path> \
-n <pipeline name> \
-n <{pipeline_type} name> \
-d <project local path> \
--package-pipeline-name <pipeline name> \
--env-provision-pipeline-name <pipeline name> \
--package-pipeline-name <{pipeline_type} name> \
--env-provision-pipeline-name <{pipeline_type} name> \
--k8s-provider <provider name> \
--k8s-namespace <namespace> \
--k8s-deploy-files-path <manifests path> \
[--k8s-image-pull-secret-name <secret name>] \
[-b <branch>] \
[-w]
```
NOTE: The config file for the deploy pipeline is located at `/scripts/pipelines/{path_provider}/templates/deploy/deploy-pipeline.cfg`.
NOTE: The config file for the deploy {pipeline_type} is located at `/scripts/pipelines/{path_provider}/templates/deploy/deploy-pipeline.cfg`.

=== Flags
[subs=attributes+]
```
-c --config-file [Required] Configuration file containing pipeline definition.
-n --pipeline-name [Required] Name that will be set to the pipeline.
-c --config-file [Required] Configuration file containing {pipeline_type} definition.
-n --pipeline-name [Required] Name that will be set to the {pipeline_type}.
-d --local-directory [Required] Local directory of your project.
--package-pipeline-name [Required] Package pipeline name.
--env-provision-pipeline-name [Required] Environment provisioning pipeline name.
--package-pipeline-name [Required] Package {pipeline_type} name.
--env-provision-pipeline-name [Required] Environment provisioning {pipeline_type} name.
--k8s-provider [Required] Kubernetes cluster provider name. Accepted values: EKS, AKS.
--k8s-namespace [Required] Kubernetes namespace where the application will be deployed.
--k8s-deploy-files-path [Required] Path from the root of the project to the YAML manifests directory.
--k8s-image-pull-secret-name Name for the generated secret containing registry credentials. Required when using a private registry to host images.
--k8s-image-pull-secret-name Name for the generated secret containing registry credentials. Required when using a private registry to host images.

-b --target-branch Name of the branch to which the Pull Request will target. PR is not created if the flag is not provided.
-w Open the Pull Request on the web browser if it cannot be automatically merged. Requires -b flag.
```
@@ -65,7 +68,7 @@ NOTE: The config file for the deploy pipeline is located at `/scripts/pipelines

=== Appendix: accessing the application

Once the {pipeline_type} is executed and your application is deployed, you can list the hostname to access it with:
Once the {pipeline_type} is executed and your application is deployed, you can list the hostname to access it by running locally:

```
kubectl get ingress -n <namespace>
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.