forked from APAP-ICT/APAP-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- github action flow build 하위 브랜치 모두 작동하도록 변경
- Loading branch information
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,49 @@ | ||
# APAP-ai | ||
한이음ICT-2024-APAP-ai | ||
# APAP-AI | ||
|
||
This is a repository for an object detection inference API using `YOLOv5` and `FastAPI` | ||
|
||
This repository is used for 스마트해상물류 ICT project. | ||
|
||
|
||
### Install | ||
Dependencies are managed using `Poetry`. | ||
|
||
```shell | ||
pip install poetry | ||
poetry install | ||
``` | ||
|
||
### Run | ||
```shell | ||
poetry run uvicorn --host=127.0.0.1 app.main:app | ||
``` | ||
|
||
### Usage | ||
Environment variables are managed through dotenv. | ||
|
||
The defined variables are referenced from the `.env` file in the root directory. | ||
|
||
### API Endpoints | ||
Documentation is provided through `SwaggerUI`, which is built into `FastAPI` by default. | ||
|
||
```http request | ||
http://localhost:8080/docs | ||
``` | ||
|
||
### Test | ||
```shell | ||
poetry run pytest | ||
``` | ||
|
||
### Deployment via GitHub Actions | ||
The following variables need to be defined in the `Environment secrets`: | ||
|
||
| Variable | Description | | ||
|----------------------|------------------------------------| | ||
| GHCR_TOKEN | GitHub Container Registry Token | | ||
| REMOTE_IP | Remote server IP | | ||
| REMOTE_USER | Remote server user name | | ||
| REMOTE_PRIVATE_KEY | Remote server private key | | ||
| REMOTE_SSH_PORT | 22 | | ||
|
||
|