{"id":22574843,"url":"https://github.com/thoth-station/s2i-example","last_synced_at":"2025-04-10T16:11:02.585Z","repository":{"id":48370653,"uuid":"199791835","full_name":"thoth-station/s2i-example","owner":"thoth-station","description":"An example of Thoth's recommendations in OpenShift's s2i builds for a TensorFlow stack","archived":false,"fork":false,"pushed_at":"2023-05-29T22:01:11.000Z","size":92,"stargazers_count":3,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T13:51:23.911Z","etag":null,"topics":["example-project","hacktoberfest","openshift","s2i","s2i-python","software-stack","tensorflow","tensorflow-examples","thoth"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoth-station.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-31T06:16:56.000Z","updated_at":"2022-11-23T16:13:35.000Z","dependencies_parsed_at":"2022-08-29T22:11:30.155Z","dependency_job_id":null,"html_url":"https://github.com/thoth-station/s2i-example","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/thoth-station%2Fs2i-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fs2i-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fs2i-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoth-station%2Fs2i-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoth-station","download_url":"https://codeload.github.com/thoth-station/s2i-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248250993,"owners_count":21072685,"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":["example-project","hacktoberfest","openshift","s2i","s2i-python","software-stack","tensorflow","tensorflow-examples","thoth"],"created_at":"2024-12-08T03:08:11.035Z","updated_at":"2025-04-10T16:11:02.565Z","avatar_url":"https://github.com/thoth-station.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Thoth's TensorFlow stack guidance example\n-----------------------------------------\n\n**See different branches for different examples**\n\nThis is an example of an application which uses Thoth's recommendations to\nrecommend a TensorFlow stack for a specific hardware. The application is\nshowing a generic approach how to integrate inside OpenShift's s2i build\nprocess.\n\nFor CLI (Command Line Interface) examples, visit `thoth-station/cli-examples\n\u003chttps://github.com/thoth-station/cli-examples\u003e`__ repository.\n\nOpenShift s2i - Source-To-Image\n===============================\n\nTo have recommendations suited for your specific hardware, you need to\nconfigure the build to be done on a the hardware where the application is\nsupposed to be run (specific node placement for build and application run which\nshould match).  This helps to explore available hardware during the application\nbuild. Hardware information together with the environment configuration (base\ncontainer image) are subsequently sent to Thoth's recommendation engine to\nperform resolving of TensorFlow's dependencies.\n\nTo deploy this application to OpenShift:\n\n.. code-block:: console\n\n  oc project \u003cYOUR-PROJECT-NAME\u003e\n  oc process -f https://raw.githubusercontent.com/thoth-station/s2i-example/master/openshift.yaml | oc apply -f -\n\nThe BuildConfig is using UBI 8 Python 3.6 as a base for the application.\n\nOnce the templates get applied, a build is started. As the build is configured\nto ask Thoth for advises, Thoth is contacted (see ``thoth_conf_template.yaml``\nconfiguration file for info on configuration options).\n\nThoth computes recommendations and gives back a ``Pipfile.lock`` with\nadditional guidance on software stack (see build logs). Note that computing\nrecommendations takes some time, there is assigned a certain amount of CPU\nbased on Thoth's backend configuration. Results are cached (3 hours by default)\nso next builds for the same stack and same software/hardware configuration are\nfaster (unless forced or any configuration change on client side).\n\nTo remove this application from OpenShift:\n\n.. code-block:: console\n\n  oc delete all --selector 'app=s2i-example-tensorflow'\n\nAdjusting configuration options\n###############################\n\nSee comments in the BuildConfig available in the repo as well as\n`thoth-station/s2i-thoth \u003chttps://github.com/thoth-station/s2i-thoth\u003e`_ for\nmore info. The repo stated also provides a list of Thoth's base images with\nconfiguration options you can supply.\n\nFollow instructions present in `Thamos repository\n\u003chttps://github.com/thoth-station/thamos#using-thoth-and-thamos-in-openshifts-s2i\u003e`_\nfor more info on how to configure Thoth's client - \"Thamos\".\n\nSee also build config present in this repo to see configuration options\nsupplied to this s2i based Python application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth-station%2Fs2i-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoth-station%2Fs2i-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoth-station%2Fs2i-example/lists"}