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

Pivotal ID # 184724563: Use a specific user and server for the update script #720

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

awaisathar
Copy link
Contributor

No description provided.

@awaisathar awaisathar requested a review from jhoanmanuelms June 8, 2023 13:25
deploy.gradle Outdated
@@ -133,6 +133,8 @@ task deploy {
execute "sed -i -e 's~APP_PORT~$appPort~g' $deployPath/update.sh"
execute "sed -i -e 's~APP_NAME~$artifactName~g' $deployPath/update.sh"
execute "sed -i -e 's~DEBUG_PORT~$debugPort~g' $deployPath/update.sh"
execute "sed -i -e 's~BS_USER~`whoami`~g' $deployPath/update.sh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @awaisathar. I think we need to check the replacing command since it isn't actually replacing with the expected value in the script on the server.

You can test this by running this gradle command to deploy on dev:

./gradlew :submission:submission-webapp:bootJar deploySubmitter -Penv=dev -PdeployPath=$APPS_PATH/submitter/dev

The caveat is you'd need to export the required variables in your local console. Another way to test would be to push the changes to gitlab and test it from the deploy task there

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly now. Thanks @awaisathar 😁👍

Copy link
Contributor

@jhoanmanuelms jhoanmanuelms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhoanmanuelms jhoanmanuelms merged commit 999a650 into master Jun 14, 2023
@jhoanmanuelms jhoanmanuelms deleted the feature/pivotal-#184724563-restric-system-user branch June 14, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants