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

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

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f8f21f6
Add Dockerfile; client.py; deploy.py; deploy_requirements.txt; docker…
abrichr Oct 29, 2024
0657932
documentation
abrichr Oct 29, 2024
7b8d20c
add workflow file
abrichr Oct 29, 2024
71892c3
improve logging
abrichr Oct 29, 2024
4fdd738
feat(deploy): Add Dockerfile, client.py, deploy.py
abrichr Oct 29, 2024
31c6289
remove autogenerated .github/workflows/docker-build-ec2.yml
abrichr Oct 29, 2024
6c55805
restore requirements.txt
abrichr Oct 29, 2024
f31f8ae
add workflow file
abrichr Oct 29, 2024
1e6fa93
append timestamps to filenames; return bboxes
abrichr Oct 29, 2024
b439503
add missing json import
abrichr Oct 29, 2024
be7866f
return json with label_coordinates and parsed_content_list
abrichr Oct 29, 2024
faa075e
remove conflicting container if it exists
abrichr Oct 29, 2024
db9b1ee
NumpyEncoder
abrichr Oct 29, 2024
706f521
save raw result data
abrichr Oct 29, 2024
a1b85c5
improve documentation
abrichr Oct 29, 2024
803d0bf
feat(client): save bounding boxes
abrichr Oct 29, 2024
88f7246
Add functionality to save bounding boxes
abrichr Oct 29, 2024
754d0b7
update README
abrichr Oct 29, 2024
af8c9da
improve README
abrichr Oct 29, 2024
4fdb813
add deploy section to README
abrichr Oct 29, 2024
3520928
improve documentation
abrichr Oct 30, 2024
64bdbaa
add usage to Dockerfile documentation
abrichr Oct 30, 2024
9cce7d7
Improve deploy.py documentation
abrichr Oct 30, 2024
54b8b47
add client.predict and documentation
abrichr Oct 30, 2024
169dd20
Merge branch 'master' into feat/deploy
abrichr Nov 1, 2024
b8b952c
undo changes to gradio_demo.py
abrichr Nov 1, 2024
201af0f
Add JSON output formatting to process function; return label_coordinates
abrichr Nov 1, 2024
a411848
Update Dockerfile documentation
abrichr Nov 1, 2024
b706744
Merge branch 'master' into feat/deploy
abrichr Nov 1, 2024
9ad451a
remove superfluous print
abrichr Nov 1, 2024
9f2dc91
more terse
abrichr Nov 1, 2024
76d6110
parsed_content
abrichr Nov 1, 2024
16a4d7a
simplify dependencies; update AMI; ssh non_interactive; replace nvidi…
abrichr Nov 12, 2024
10b08e6
add workflow file
abrichr Nov 12, 2024
2b91690
Revert "add workflow file"
abrichr Nov 12, 2024
fcb23b8
update documentation
abrichr Nov 12, 2024
cd69e3a
Update README.md: replace nvidia-docker with docker
abrichr Nov 13, 2024
f2f8ba8
Merge branch 'master' into feat/deploy
abrichr Dec 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add workflow file
abrichr committed Nov 12, 2024
commit 10b08e685a253424ab5ae366bcf3500a235d7d0d
41 changes: 41 additions & 0 deletions .github/workflows/docker-build-ec2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Autogenerated via deploy.py, do not edit!

name: Docker Build on EC2 Instance for OmniParser

on:
push:
branches:
- feat/deploy

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: SSH and Execute Build on EC2
uses: appleboy/ssh-action@master
with:
command_timeout: "60m"
host: 44.220.85.134
username: ubuntu

key: ${{ secrets.SSH_PRIVATE_KEY }}

script: |
rm -rf OmniParser || true
git clone https://github.com/OpenAdaptAI/OmniParser
cd OmniParser
git checkout feat/deploy
git pull

# Stop and remove any existing containers
sudo docker stop omniparser-container || true
sudo docker rm omniparser-container || true

# Build the Docker image
sudo docker build -t omniparser .

# Run the Docker container on the specified port
sudo docker run -d -p 7861:7861 --gpus all --name omniparser-container omniparser