{"id":18293082,"url":"https://github.com/kubesphere/s2i-python-container","last_synced_at":"2025-09-06T17:37:33.945Z","repository":{"id":37597886,"uuid":"173416149","full_name":"kubesphere/s2i-python-container","owner":"kubesphere","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-13T08:18:47.000Z","size":1609,"stargazers_count":5,"open_issues_count":5,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-13T21:43:09.533Z","etag":null,"topics":["devops"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kubesphere.png","metadata":{"files":{"readme":"README.md","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-03-02T07:14:05.000Z","updated_at":"2023-08-16T08:53:22.000Z","dependencies_parsed_at":"2023-02-09T15:01:33.179Z","dependency_job_id":null,"html_url":"https://github.com/kubesphere/s2i-python-container","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-python-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-python-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-python-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-python-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kubesphere","download_url":"https://codeload.github.com/kubesphere/s2i-python-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246795342,"owners_count":20835181,"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":["devops"],"created_at":"2024-11-05T14:21:48.694Z","updated_at":"2025-04-05T11:30:47.092Z","avatar_url":"https://github.com/kubesphere.png","language":"Shell","readme":"[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/kubesphere/s2i-python-container)\n\nPython container images\n====================\n\nThis repository contains the source for building various versions of\nthe Python application as a reproducible container image using\n[source-to-image](https://github.com/kubesphere/s2ioperator).\nUsers can choose between RHEL, Fedora and CentOS based builder images.\nThe resulting image can be run using [Docker](http://docker.io).\n\n\nContributing\n---------------\nIn this repository [distgen](https://github.com/devexp-db/distgen/) \u003e 1.0 is used for generating directories for Python versions. Also make sure distgen imports the jinja2 package \u003e= 2.10. If you'd like to update some of the files, please make changes in specs/multispec.yml and/or templates under src/ and run `make generate-all`.\n\n\nVersions\n---------------\nPython versions currently provided are:\n* [python-2.7](2.7)\n* [python-3.5](3.5)\n* [python-3.6](3.6)\n* [python-3.7](3.7)\n\nRHEL versions currently supported are:\n* RHEL7\n\nCentOS versions currently supported are:\n* CentOS7\n\n\nInstallation\n---------------\nTo build a Python image, choose either the CentOS or RHEL based image:\n\n*  **image**\n\n    This image is available on DockerHub. To download it run:\n\n    ```\n    $ docker pull kubespheredev/python-36-centos7\n    ```\n\n    To build a Python image from scratch run:\n\n    ```\n    $ git clone https://github.com/kubesphere/s2i-python-container.git\n    $ cd s2i-python-container\n    $ make build TARGET=centos7 VERSIONS=3.6\n    ```\n\n**Notice: By omitting the `VERSIONS` parameter, the build/test action will be performed\non all provided versions of Python.**\n\n\nUsage\n---------------------------------\n\nFor information about usage of Dockerfile for Python 2.7,\nsee [usage documentation](2.7/README.md).\n\nFor information about usage of Dockerfile for Python 3.5,\nsee [usage documentation](3.5/README.md).\n\nFor information about usage of Dockerfile for Python 3.6,\nsee [usage documentation](3.6/README.md).\n\n\nTest\n---------------------\nUsers can choose between testing a Python test application based on a RHEL or CentOS image.\n\n*  **CentOS based image**\n\n    ```\n    $ cd s2i-python-container\n    $ make test TARGET=centos7 VERSIONS=3.6\n    ```\n\n**Notice: By omitting the `VERSIONS` parameter, the build/test action will be performed\non all provided versions of Python.**\n\n\nRepository organization\n------------------------\n* **`\u003cpython-version\u003e`**\n\n    * **Dockerfile**\n\n        CentOS based Dockerfile.\n\n    * **Dockerfile.rhel7**\n\n        RHEL based Dockerfile. In order to perform build or test actions on this\n        Dockerfile you need to run the action on a properly subscribed RHEL machine.\n\n    * **`s2i/bin/`**\n\n        This folder contains scripts that are run by [S2I](https://github.com/kubesphere/s2ioperator):\n\n        *   **assemble**\n\n            Used to install the sources into the location where the application\n            will be run and prepare the application for deployment (eg. installing\n            dependencies, etc.)\n\n        *   **run**\n\n            This script is responsible for running the application by using the\n            application web server.\n\n        *   **usage***\n\n            This script prints the usage of this image.\n\n    * **`contrib/`**\n\n        This folder contains a file with commonly used modules.\n\n    * **`test/`**\n\n        This folder contains a [S2I](hhttps://github.com/kubesphere/s2ioperator)\n        test framework with a simple server.\n\n        * **`setup-test-app/`**\n\n            Simple Gunicorn application used for testing purposes by the [S2I](https://github.com/kubesphere/s2ioperator) test framework.\n\n        * **`standalone-test-app/`**\n\n            Simple standalone application used for testing purposes by the [S2I](https://github.com/kubesphere/s2ioperator) test framework.\n\n        * **run**\n\n            Script that runs the [S2I](https://github.com/kubesphere/s2ioperator) test framework.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubesphere%2Fs2i-python-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubesphere%2Fs2i-python-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubesphere%2Fs2i-python-container/lists"}