Skip to content

Comments

Add Dockerfile and client.py; deploy to EC2 on AWS via Github Actions#19

Merged
jwyang merged 102 commits intomicrosoft:mainfrom
OpenAdaptAI:feat/deploy
Mar 15, 2024
Merged

Add Dockerfile and client.py; deploy to EC2 on AWS via Github Actions#19
jwyang merged 102 commits intomicrosoft:mainfrom
OpenAdaptAI:feat/deploy

Conversation

@abrichr
Copy link
Contributor

@abrichr abrichr commented Jan 14, 2024

Instructions

  1. Fork https://github.com/OpenAdaptAI/SoM, clone your fork to your local machine, and check out the feat/deploy branch.
  2. Follow the instructions at the top of deploy.py.

Summary

This PR implements functionality to automatically deploy SoM to EC2 on AWS via Docker, Github Actions, and boto3.

It also addresses #22 by upgrading gradio to 4.17.0 and adds a working example client.py.

image
(venv) abrichr@MacBook-Pro-4 SoM % python client.py                                                                          
Loaded as API: http://3.84.210.111:6092/ ✔         
/private/var/folders/35/pqjnmmwx24d2mtf4frt5dhcc0000gn/T/gradio/60cdba21007c18ea62202556bd944745f82a4a89/image.png

@abrichr abrichr closed this Jan 14, 2024
@abrichr abrichr deleted the feat/deploy branch January 14, 2024 00:04
@abrichr abrichr restored the feat/deploy branch January 14, 2024 00:06
@abrichr abrichr reopened this Jan 14, 2024
@abrichr abrichr closed this Jan 14, 2024
…erver_url param in client.py; improve logging
@abrichr abrichr changed the title Dockerize and deploy to EC2 on AWS via Github Actions Add Dockerfile and deploy to EC2 on AWS via Github Actions Feb 29, 2024
@abrichr abrichr changed the title Add Dockerfile and deploy to EC2 on AWS via Github Actions Add Dockerfile and deploy to EC2 on AWS via Github Actions and boto3 Feb 29, 2024
@abrichr
Copy link
Contributor Author

abrichr commented Mar 2, 2024

@jwyang @FengLi-ust @MaureenZOU @microsoftopensource @HaoZhang534 @eltociear thank you for the excellent work on this repo!

I believe this PR is ready to merge. Please let me know if you have any questions/comments!

@abrichr abrichr changed the title Add Dockerfile and deploy to EC2 on AWS via Github Actions and boto3 Add Dockerfile and client.py; deploy to EC2 on AWS via Github Actions Mar 8, 2024
Fix formatting
@jwyang
Copy link
Contributor

jwyang commented Mar 10, 2024

Thank you so much for the great effort! @abrichr. Sorry for getting back lately. I left a quick comment above, let's move quickly to merge your PRs.

@abrichr
Copy link
Contributor Author

abrichr commented Mar 11, 2024

Thank you @jwyang!

I left a quick comment above

I am unable to find it, perhaps it's in a review that hasn't yet been submitted? 🙏

@jwyang
Copy link
Contributor

jwyang commented Mar 12, 2024

@abrichr

image

@abrichr
Copy link
Contributor Author

abrichr commented Mar 13, 2024

Thanks @jwyang! (It looks like that comment is still "Pending", which means others won't see it until the review has been submitted -- see https://github.com/orgs/community/discussions/10369).

The gradio version is specified in the Dockerfile: https://github.com/microsoft/SoM/pull/19/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557R31

&& pip install gradio==4.17.0

Please let me know if I can clarify anything further! 🙏

@jwyang
Copy link
Contributor

jwyang commented Mar 15, 2024

oh, my bad, @abrichr, then I think everything looks great!

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