-
Notifications
You must be signed in to change notification settings - Fork 9
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
TI Script Updates #1648
TI Script Updates #1648
Conversation
…scriptes/README.md
- This is based on if you're running TI in docker vs gradle
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
scripts/setup/setup-reportstream.sh
Outdated
sed -i '' "s|__TI_API_URL__|${TI_LCL_API_URL}|g" "settings/STLTs/Flexion/flexion.yml" | ||
sed -i '' "s|__TI_API_HOST__|$(extract_host_from_url "${TI_LCL_API_URL}")|g" "settings/STLTs/Flexion/flexion.yml" | ||
if [[ ! -z $LOCAL_DOCKER_IMAGE_NAME ]]; then | ||
sed -i '' "s|__TI_API_URL__|${TI_DOCKER_LCL_API_URL_RS_CONFIG}|g" "settings/STLTs/Flexion/flexion.yml" |
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.
Consider using a more portable syntax for the 'sed' command to ensure compatibility across different Unix systems. For example, explicitly specify a backup extension and then remove the backup file if needed. [important]
PR Code Suggestions ✨Explore these optional code suggestions:
|
@saquino0827 I just tried this PR and it's not working for me. The if statement is true, and it adds the docker host name, but that doesn't work in my case. I'm wondering if we should just add a note in the docs for people to update their hostname to whatever works in their environment instead of trying to set it automatically. We could still have two separate api url env variables, but instead of having one specific for docker, we could have one specific to the rs setup script |
I'd propose having this in the env.template file
And directly using TI_LCL_API_URL_RS_CONFIG in scripts/setup/setup-reportstream.sh without the if statement |
Yeah, I think I agree with this and I'll update the README. |
… can default to leaving it as a config change per user environment Co-authored-by: Sylvie <[email protected]> Co-authored-by: GilmoreA6 <[email protected]> Co-authored-by: pluckyswan <[email protected]>
I gave it a bit more thought with others and I might try one last attempt to getting the scripts working with Docker vs Gradle. We theorized that |
Ok. In case that doesn't work, I propose completely removing the if statement and just adding a note to the readme. Setting values to the person's specific environment in the .env file is the purpose of that file anyway |
@basiliskus can you pull the latest changes and test to see if your environment gets set up correctly? |
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 tried it and it works for me! I just left one comment regarding the variable names
- template update to rename variables - README update to reference where local set up of RS and TI are - update local variables to be lower case
I went with your suggestion for naming |
Quality Gate passedIssues Measures |
Description
script/README
gradle
vsdocker
setup for the reportstream setup script#1658