Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Support deployment to Google Cloud Run #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

TrystonMinsquero
Copy link
Collaborator

@TrystonMinsquero TrystonMinsquero commented Feb 3, 2022

Closes #4
Closes #9

Deployment

I had created a Dockerfile in order to deploy the streamlit app to google cloud run. Testing it out on a personal google cloud account project, there was a problem with the websocket connection. Upon further reading of this github issue and this streamlit forum, it is safe to say Google cloud run really shouldn't be used to deploy streamlit projects. However, that does not mean it is impossible.

Workaround

In order to the healthz conflict, we encounter upon deployment, created an app.yaml file and edited the dockerfile to hack around the error. This is not pretty and really shouldn't be done, but this is the only way I found to get around this error. You can read in more detail about the solution from this comment. Ideally, we would just not deploy comet circle with streamlit or not use google cloud run.

Instructions

I have also provided instructions on how to deploy this project on any google cloud project in the README.md. Very simple and is just two commands.

You can read about the problem and solution [here](https://discuss.streamlit.io/t/has-anyone-deployed-to-google-cloud-platform/931/24). It's best solution would to not use google cloud run, but this is the only other option I found to fix it.
added deployment instructions and more CONTENT
@WillieCubed
Copy link
Member

Could you give some more information in the description of the pull request of what changed at a high level and include what someone should know about the effects of this PR?

Copy link
Collaborator Author

@TrystonMinsquero TrystonMinsquero left a comment

Choose a reason for hiding this comment

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

Looks good to me, let me know if there are any issues.

@WillieCubed WillieCubed changed the title Deployment Support deployment to Google Cloud Run Feb 4, 2022
@WillieCubed WillieCubed enabled auto-merge (rebase) February 4, 2022 01:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Connection error on page load Deploy Comet Circle to utdnebula.com subdomain
2 participants