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

[No Ticket] Leo jar hotswap script fix and documentation #1103

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

kyuksel
Copy link
Contributor

@kyuksel kyuksel commented Oct 17, 2019

No description provided.

# For some reason including the rm command to be executed on the FIAB within the EOSSH block below doesn't work
gcloud compute ssh --project broad-dsde-dev --zone us-central1-a ${FIAB} -- 'sudo docker exec -it firecloud_leonardo-app_1 sh -c "rm -f /leonardo/*jar"'

printf "Copying the Leo jar to the right location on the FIAB, and restarting the Leo app and proxy...\n\n"
gcloud compute ssh --project broad-dsde-dev --zone us-central1-a ${FIAB} << EOSSH
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The line below didn't work and had to be moved out of heredoc for some reason 🤷‍♂


printf "Removing the old Leo jars on the FIAB...\n\n"
# For some reason including the rm command to be executed on the FIAB within the EOSSH block below doesn't work
gcloud compute ssh --project broad-dsde-dev --zone us-central1-a ${FIAB} -- 'sudo docker exec -it firecloud_leonardo-app_1 sh -c "rm -f /leonardo/*jar"'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

gcloud compute ssh wants the ssh arguments to trail after a --. Also had to invoke sh for the *jar to be interpreted properly.

@kyuksel kyuksel changed the title script fix and documentation [No Ticket] Leo jar hotswap script fix and documentation Oct 17, 2019
@kyuksel kyuksel merged commit 43dbecf into develop Oct 17, 2019
@kyuksel kyuksel deleted the ky_fix_hotswap_script branch October 17, 2019 14:29
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