-
Notifications
You must be signed in to change notification settings - Fork 385
Porting apps to hub #775
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
Open
jflidr
wants to merge
7
commits into
main
Choose a base branch
from
feat/oakapp-in-hub
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Porting apps to hub #775
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0d9538e
Porting apps to hub
jflidr 23b27e4
added encoders to lossless zoom
klemen1999 d150589
added encodings to triangulation
klemen1999 2ddc1ec
added encoding to age-gender
klemen1999 7a0eca6
added encoding on OCR example
klemen1999 5ece7a6
small fix on default app
klemen1999 446ebe2
increased face detection threshold on age-gender example
klemen1999 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| echo "Starting Backend" | ||
| exec python3.12 /app/main.py |
This file contains hidden or 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,17 +1,26 @@ | ||
| identifier = "com.example.depth-measurement.triangulation" | ||
| app_version = "1.0.0" | ||
| identifier = "com.luxonis.depth-measurement.triangulation" | ||
| entrypoint = ["bash", "-c", "/usr/bin/runsvdir -P /etc/service"] | ||
| app_version = "1.0.1" | ||
| assign_frontend_port = true | ||
|
|
||
| prepare_container = [ | ||
| { type = "RUN", command = "apt-get update" }, | ||
| { type = "RUN", command = "apt-get install -y python3-pip" }, | ||
| { type = "COPY", source = "requirements.txt", target = "requirements.txt" }, | ||
| { type = "RUN", command = "pip3 install -r /app/requirements.txt --break-system-packages" }, | ||
| { type = "COPY", source = "./requirements.txt", target = "./requirements.txt" }, | ||
| { type = "RUN", command = "python3.12 -m pip install -r /app/requirements.txt --break-system-packages"} | ||
| ] | ||
|
|
||
| prepare_build_container = [] | ||
|
|
||
| build_steps = [] | ||
| build_steps = [ | ||
| "mkdir -p /etc/service/backend", | ||
| "cp /app/backend-run.sh /etc/service/backend/run", | ||
| "chmod +x /etc/service/backend/run", | ||
| ] | ||
|
|
||
| depthai_models = { yaml_path = "./depthai_models" } | ||
|
|
||
| entrypoint = ["bash", "-c", "python3 -u /app/main.py"] | ||
| [base_image] | ||
| api_url = "https://registry-1.docker.io" | ||
| service = "registry.docker.io" | ||
| oauth_url = "https://auth.docker.io/token" | ||
| auth_type = "repository" | ||
| auth_name = "luxonis/oakapp-base" | ||
| image_name = "luxonis/oakapp-base" | ||
| image_tag = "1.2.6" |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| echo "Starting Backend" | ||
| exec python3.12 /app/main.py |
This file contains hidden or 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,17 +1,26 @@ | ||
| identifier = "com.example.face-detection.age-gender" | ||
| app_version = "1.0.0" | ||
| identifier = "com.luxonis.face-detection.age-gender" | ||
| entrypoint = ["bash", "-c", "/usr/bin/runsvdir -P /etc/service"] | ||
| app_version = "1.0.1" | ||
| assign_frontend_port = true | ||
|
|
||
| prepare_container = [ | ||
| { type = "RUN", command = "apt-get update" }, | ||
| { type = "RUN", command = "apt-get install -y python3-pip" }, | ||
| { type = "COPY", source = "requirements.txt", target = "requirements.txt" }, | ||
| { type = "RUN", command = "pip3 install -r /app/requirements.txt --break-system-packages" }, | ||
| { type = "COPY", source = "./requirements.txt", target = "./requirements.txt" }, | ||
| { type = "RUN", command = "python3.12 -m pip install -r /app/requirements.txt --break-system-packages"} | ||
| ] | ||
|
|
||
| prepare_build_container = [] | ||
|
|
||
| build_steps = [] | ||
| build_steps = [ | ||
| "mkdir -p /etc/service/backend", | ||
| "cp /app/backend-run.sh /etc/service/backend/run", | ||
| "chmod +x /etc/service/backend/run", | ||
| ] | ||
|
|
||
| depthai_models = { yaml_path = "./depthai_models" } | ||
|
|
||
| entrypoint = ["bash", "-c", "python3 -u /app/main.py"] | ||
| [base_image] | ||
| api_url = "https://registry-1.docker.io" | ||
| service = "registry.docker.io" | ||
| oauth_url = "https://auth.docker.io/token" | ||
| auth_type = "repository" | ||
| auth_name = "luxonis/oakapp-base" | ||
| image_name = "luxonis/oakapp-base" | ||
| image_tag = "1.2.6" |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/sh | ||
| echo "Starting Backend" | ||
| exec python3.12 /app/main.py |
This file contains hidden or 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,17 +1,26 @@ | ||
| identifier = "com.example.ocr.general-ocr" | ||
| app_version = "1.0.0" | ||
| identifier = "com.luxonis.ocr.general-ocr" | ||
| entrypoint = ["bash", "-c", "/usr/bin/runsvdir -P /etc/service"] | ||
| app_version = "1.0.1" | ||
| assign_frontend_port = true | ||
|
|
||
| prepare_container = [ | ||
| { type = "RUN", command = "apt-get update" }, | ||
| { type = "RUN", command = "apt-get install -y python3-pip" }, | ||
| { type = "COPY", source = "requirements.txt", target = "requirements.txt" }, | ||
| { type = "RUN", command = "pip3 install -r /app/requirements.txt --break-system-packages" }, | ||
| { type = "COPY", source = "./requirements.txt", target = "./requirements.txt" }, | ||
| { type = "RUN", command = "python3.12 -m pip install -r /app/requirements.txt --break-system-packages"} | ||
| ] | ||
|
|
||
| prepare_build_container = [] | ||
|
|
||
| build_steps = [] | ||
| build_steps = [ | ||
| "mkdir -p /etc/service/backend", | ||
| "cp /app/backend-run.sh /etc/service/backend/run", | ||
| "chmod +x /etc/service/backend/run", | ||
| ] | ||
|
|
||
| depthai_models = { yaml_path = "./depthai_models" } | ||
|
|
||
| entrypoint = ["bash", "-c", "python3 -u /app/main.py"] | ||
| [base_image] | ||
| api_url = "https://registry-1.docker.io" | ||
| service = "registry.docker.io" | ||
| oauth_url = "https://auth.docker.io/token" | ||
| auth_type = "repository" | ||
| auth_name = "luxonis/oakapp-base" | ||
| image_name = "luxonis/oakapp-base" | ||
| image_tag = "1.2.6" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default I think we should still keep the identifiers to
com.exampleand change to com.luxonis just locally (or in CI/CD in the future) when app is being built for upload