{"id":18192005,"url":"https://github.com/codekow/demo-ocp-label-studio","last_synced_at":"2025-04-02T08:31:04.626Z","repository":{"id":131119635,"uuid":"601822643","full_name":"codekow/demo-ocp-label-studio","owner":"codekow","description":"Explore and demo label-studio on OpenShift","archived":false,"fork":false,"pushed_at":"2023-12-05T00:54:52.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T16:51:45.020Z","etag":null,"topics":["data-science","datascience","label-studio","openshift"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codekow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-14T22:33:01.000Z","updated_at":"2023-09-08T14:32:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aa2f933-1a4d-4c2b-9253-75d7d751290e","html_url":"https://github.com/codekow/demo-ocp-label-studio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-label-studio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-label-studio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-label-studio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fdemo-ocp-label-studio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekow","download_url":"https://codeload.github.com/codekow/demo-ocp-label-studio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781997,"owners_count":20832951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","datascience","label-studio","openshift"],"created_at":"2024-11-03T06:41:59.586Z","updated_at":"2025-04-02T08:31:04.213Z","avatar_url":"https://github.com/codekow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Label-Studio on Openshift\n\nExplore and demo label-studio on OpenShift\n\n## Usage\n\n### Quick Start\n\nSee [Label Studio Helm Chart](https://github.com/HumanSignal/charts) with [OpenShift Values](https://github.com/HumanSignal/charts/blob/master/heartex/label-studio/example-values/label-studio-on-openshift.yaml)\n\n```\n. scripts/bootstrap.sh\n\n# local demo\nlocal_demo\n\n# openshift demo\nopenshift_demo\n```\n\nImport local files via `files.txt`\n\n```\nscripts/serve_local_files.sh path_to_files/*.png\n```\n\nImport from YOLO format to label studio\n\n```\nmkdir -p scratch/example\ncd scratch/example\n\nunzip yolo.zip -d example\n\nlabel-studio-converter import yolo \\\n  -i example/ \\\n  -o ls-tasks.json \\\n  --image-ext .jpg \\\n  --image-root-url http://localhost:8081\n\ncd ../..\n\nscripts/serve_local_files.sh scratch/example/images\n```\n\nCreate a Label Studio Project via cli\n\n```\nlabel-studio init Example \\\n  --initial-project-description \"An Example Project\" \\\n  --label-config ls-tasks.label_config.xml\n```\n\n### TL;DR Example\n\n```\n# create project for label-studio\noc new-project label-studio\n\nAPP_NAME=label-studio-patch\noc new-app https://github.com/redhat-na-ssa/demo-ocp-label-studio.git \\\n  --name \"${APP_NAME}\" \\\n  --strategy docker \\\n  --context-dir container/patch\n\noc expose service \\\n  \"${APP_NAME}\" \\\n  --port 8080 \\\n  --overrides='{\"spec\":{\"tls\":{\"termination\":\"edge\"}}}'\n```\n\n### Local Dev\n\n```\n# activate python virtual env (bash)\nsource venv/bin/activate\n\n# start label-studio\nlabel-studio\n```\n\n### OpenShift\n\nNew Project for testing\n\n```\n# create project for label-studio\noc new-project label-studio-source\n```\n\nBuild strategy `docker` to [patch](container/patch) public image\n\n```\nAPP_NAME=label-studio-patch\noc new-app https://github.com/redhat-na-ssa/demo-ocp-label-studio.git \\\n  --name \"${APP_NAME}\" \\\n  --strategy docker \\\n  --context-dir container/patch\n```\n\nBuild strategy `source` (s2i)\n\n```\nAPP_NAME=label-studio-s2i-source\noc new-app https://github.com/redhat-na-ssa/demo-ocp-label-studio.git \\\n  --name \"${APP_NAME}\" \\\n  --strategy source \\\n  --context-dir container/s2i\n```\n\nBuild strategy `docker`\n\n```\nAPP_NAME=label-studio-s2i-docker\noc new-app https://github.com/redhat-na-ssa/demo-ocp-label-studio.git \\\n  --name \"${APP_NAME}\" \\\n  --strategy docker \\\n  --context-dir container/s2i\n```\n\nExpose via route, w/ https, in OpenShift (repeat as needed)\n\n```\n# create route\noc expose service \\\n  \"${APP_NAME}\"\n\n# update route to use tls\noc patch route \\\n  \"${APP_NAME}\" \\\n  --patch='{\"spec\":{\"tls\":{\"termination\":\"edge\"}}}'\n```\n\n## Links\n\n- [Label Studio - Getting Started](https://labelstud.io/guide/start.html)\n- [Label Studio - Import data (cli)](https://labelstud.io/guide/tasks#Import-data-from-the-command-line)\n- [Label Studio - Import Conversion Tool](https://github.com/HumanSignal/label-studio-converter)\n- [Official Label Studio Helm Chart - Values for OpenShift](https://github.com/HumanSignal/charts/blob/master/heartex/label-studio/example-values/label-studio-on-openshift.yaml)\n- [GitHub - Label Studio](https://github.com/heartexlabs/label-studio)\n- [Demo: Label Studio on OpenShift](https://github.com/rh-intelligent-application-practice/labelstudio-openshift-deploy)\n- [atef23/labelstudio-openshift-deploy](https://github.com/atef23/labelstudio-openshift-deploy)\n- [opendatahub-io-contrib/label-studio](https://github.com/opendatahub-io-contrib/label-studio-integration) - NOT working\n- [Review / To Do](REVIEW.md)\n\n## MLOps CoP Links\n\n- [Label Studio - Presentation](https://docs.google.com/presentation/d/1bH-JYQmxIkxlug6N6yDqojKDC7XVE7HD5uxyZ7VEO-s)\n- [Label Studio - Recording](https://drive.google.com/file/d/1USf9kzuAIjviqeB6f56c4SGIyMmXovkT/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fdemo-ocp-label-studio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekow%2Fdemo-ocp-label-studio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fdemo-ocp-label-studio/lists"}