-
Notifications
You must be signed in to change notification settings - Fork 0
Scripts aws deploy revision #37
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
Open
Ariana-Franco
wants to merge
16
commits into
internal_executor
Choose a base branch
from
code_deploy
base: internal_executor
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
003286b
scripts aws deploy revision
Ariana-Franco d7afa9d
disabled after install
Ariana-Franco 8ed1035
Enabled update cloud key
Ariana-Franco 7af83c9
changing the muuktestRoute
Ariana-Franco f999352
Using chrome 114
Ariana-Franco 8f47461
Uncommenting After install
Ariana-Franco 30890f9
Enabled cloudKey adding
Ariana-Franco afb70d2
Be route in config.json
Ariana-Franco b749089
Installing google 114
Ariana-Franco 8f2d592
chown ubuntu
Ariana-Franco f95aaf6
Added validation to update the BE route and cloud Key only if exists
Ariana-Franco 37e7fae
Added validation to update the BE route and cloud Key only if exists
Ariana-Franco 8127f44
Added validation to update the BE route and cloud Key only if exists
Ariana-Franco 2f9e23e
Added validation to update the BE route and cloud Key only if exists
Ariana-Franco f24f835
Added validation to update the BE route and cloud Key only if exists
Ariana-Franco 5030623
Added validation to update the BE route and cloud Key only if exists
Ariana-Franco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/bin/bash | ||
| #Changing the executor permissions | ||
| sudo chown -R ubuntu:ubuntu /home/ubuntu/projects/executor | ||
|
|
||
| #Setting the cloud key | ||
| #The cloud key it's located in a external config.json file | ||
| if [[ -f "/home/ubuntu/config.json" ]]; then | ||
| echo "Config File exists" | ||
|
|
||
| #Changing portal route to the proper one in the config file | ||
| muuktestRoute=$(cat /home/ubuntu/config.json | jq -r '.BERoute') | ||
| echo $muuktestRoute | ||
| if [[ "$muuktestRoute" != "null" ]]; then | ||
| #Change the BE route in the mkcli.py file | ||
| sudo sed -i "s_https://portal.muuktest.com:8081_"$muuktestRoute"_" /home/ubuntu/projects/executor/mkcli.py | ||
| fi | ||
|
|
||
| # Adding the cloudKey in the mkcloud.py file | ||
| cloudKey=$(cat /home/ubuntu/config.json | jq -r '.cloudKey') | ||
| if [[ "$cloudKey" != "null" ]]; then | ||
| sudo sed -i '$ a def getCloudKey():' /home/ubuntu/projects/executor/mkcloud.py | ||
| sudo sed -i "$ a \ \ return('$cloudKey')" /home/ubuntu/projects/executor/mkcloud.py | ||
| fi | ||
| fi |
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
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I's now needed right now, that's why I commented out.
At the first time I added this line because when trying to execute a test after the deploy it causes an error of permissions since the aws agent starts the deploy as root and the support project starts the execution as ubuntu user.
Now it's changing the owner of the executor project to ubuntu in line 3 of the deploy_scripts/config_files