{"id":13797145,"url":"https://github.com/sclorg/s2i-php-container","last_synced_at":"2025-05-15T18:09:18.382Z","repository":{"id":28995009,"uuid":"32521822","full_name":"sclorg/s2i-php-container","owner":"sclorg","description":"PHP container images based on Red Hat Software Collections and intended for OpenShift and general usage, that provide a platform for building and running PHP applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.","archived":false,"fork":false,"pushed_at":"2025-03-05T12:50:34.000Z","size":778,"stargazers_count":110,"open_issues_count":30,"forks_count":329,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-31T22:21:37.312Z","etag":null,"topics":["centos","container","docker","dockerfile","fedora","openshift","php","rhel","s2i","source-to-image"],"latest_commit_sha":null,"homepage":"http://softwarecollections.org","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/sclorg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-19T13:08:06.000Z","updated_at":"2025-03-05T12:50:37.000Z","dependencies_parsed_at":"2023-11-23T11:43:29.250Z","dependency_job_id":"6c0b1202-1d3e-4955-9892-892cf497d953","html_url":"https://github.com/sclorg/s2i-php-container","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/sclorg%2Fs2i-php-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fs2i-php-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fs2i-php-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fs2i-php-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/s2i-php-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744334,"owners_count":20988783,"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":["centos","container","docker","dockerfile","fedora","openshift","php","rhel","s2i","source-to-image"],"created_at":"2024-08-03T23:01:23.365Z","updated_at":"2025-04-07T23:09:14.333Z","avatar_url":"https://github.com/sclorg.png","language":"Shell","readme":"PHP Docker images\n=================\n\n[![Build and push images to Quay.io registry](https://github.com/sclorg/s2i-php-container/actions/workflows/build-and-push.yml/badge.svg)](https://github.com/sclorg/s2i-php-container/actions/workflows/build-and-push.yml)\n\nImages available on Quay are:\n* CentOS Stream 9 [php-74](https://quay.io/repository/sclorg/php-74-c9s)\n* Fedora [php-80](https://quay.io/repository/fedora/php-80)\n* Fedora [php-81](https://quay.io/repository/fedora/php-81)\n* Fedora [php-82](https://quay.io/repository/fedora/php-82)\n* Fedora [php-83](https://quay.io/repository/fedora/php-83)\n\nThis repository contains the source for building various versions of\nthe PHP application as a reproducible Docker image using\n[source-to-image](https://github.com/openshift/source-to-image).\nUsers can choose between RHEL and CentOS based builder images.\nThe resulting image can be run using [podman](https://github.com/containers/libpod).\n\nFor more information about using these images with OpenShift, please see the\nofficial [OpenShift Documentation](https://docs.okd.io/latest/using_images/s2i_images/php.html).\n\nFor more information about contributing, see\n[the Contribution Guidelines](https://github.com/sclorg/welcome/blob/master/contribution.md).\nFor more information about concepts used in these container images, see the\n[Landing page](https://github.com/sclorg/welcome).\n\n\nVersions\n--------\nPHP versions currently supported are:\n* [php-7.4](7.4)\n* [php-8.0](8.0)\n* [php-8.1](8.1)\n* [php-8.2](8.2)\n* [php-8.3](8.3)\n\nRHEL versions currently supported are:\n* RHEL8\n* RHEL9\n* RHEL10\n\nCenOS Stream versions currently supported are:\n* CentOS Stream 9\n* CentOS Stream 10\n\nInstallation\n------------\nTo build a PHP image, choose either the CentOS or RHEL based image:\n*  **RHEL based image**\n\n    These images are available in the [Red Hat Container Catalog](https://catalog.redhat.com/software/containers/ubi8/php-74/5f521244e05bbcd88f128b63).\n    To download it run:\n\n    ```\n    $ podman pull registry.access.redhat.com/ubi8/php-74\n    ```\n\n    To build a RHEL based PHP image, you need to run the build on a properly\n    subscribed RHEL machine.\n\n    ```\n    $ git clone --recursive https://github.com/sclorg/s2i-php-container.git\n    $ cd s2i-php-container\n    $ make build TARGET=rhel8 VERSIONS=7.4\n    ```\n\n*  **CentOS based image**\n    ```\n    $ git clone --recursive https://github.com/sclorg/s2i-php-container.git\n    $ cd s2i-php-container\n    $ make build TARGET=c9s VERSIONS=7.4\n    ```\n\nAlternatively, you can pull the CentOS Stream image from Docker Hub via:\n\n    $ podman pull registry.access.redhat.com/ubi8/php-74\n\nNote: while the installation steps are calling `podman`, you can replace any such calls by `docker` with the same arguments.\n\n**Notice: By omitting the `VERSIONS` parameter, the build/test action will be performed\non all the supported versions of PHP.**\n\n\nUsage\n-----\n\nFor information about usage of Dockerfile for PHP 7.4,\nsee [usage documentation](7.4/README.md).\n\nFor information about usage of Dockerfile for PHP 8.0,\nsee [usage documentation](8.0/README.md).\n\nFor information about usage of Dockerfile for PHP 8.1,\nsee [usage documentation](8.1/README.md).\n\nFor information about usage of Dockerfile for PHP 8.2,\nsee [usage documentation](8.2/README.md).\n\nFor information about usage of Dockerfile for PHP 8.3,\nsee [usage documentation](8.3/README.md).\n\nTest\n----\nThis repository also provides a [S2I](https://github.com/openshift/source-to-image) test framework,\nwhich launches tests to check functionality of a simple PHP application built on top of the s2i-php image.\n\nUsers can choose between testing a PHP test application based on a RHEL or CentOS image.\n\n*  **RHEL based image**\n\n    This image is not available as a trusted build in [Docker Index](https://index.docker.io).\n\n    To test a RHEL8 based PHP-7.4 image, you need to run the test on a properly\n    subscribed RHEL machine.\n\n    ```\n    $ cd s2i-php-container\n    $ make test TARGET=rhel8 VERSIONS=7.4\n    ```\n\n*  **CentOS Stream based image**\n\n    ```\n    $ cd s2i-php-container\n    $ make test TARGET=c9s VERSIONS=7.4\n    ```\n\n**Notice: By omitting the `VERSIONS` parameter, the build/test action will be performed\non all the supported versions of PHP.**\n\n\nRepository organization\n-----------------------\n* **`\u003cphp-version\u003e`**\n\n    * **Dockerfile.c9s**\n\n        CentOS Stream based Dockerfile.\n\n    * **Dockerfile.rhel8**\n\n        RHEL based Dockerfile. In order to perform build or test actions on this\n        Dockerfile you need to run the action on properly subscribed RHEL machine.\n\n    * **`s2i/bin/`**\n\n        This folder contains scripts that are run by [S2I](https://github.com/openshift/source-to-image):\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 (e.g. installing\n            modules using npm, etc.)\n\n        *   **run**\n\n            This script is responsible for running the application, by using the\n            application web server.\n\n    * **`contrib/`**\n\n        This folder contains a file with commonly used modules.\n\n    * **`test/`**\n\n        This folder contains the [S2I](https://github.com/openshift/source-to-image)\n        test framework with a sample PHP app.\n\n        * **`test-app/`**\n\n            A simple PHP app used for testing purposes by the [S2I](https://github.com/openshift/source-to-image) test framework.\n\n        * **run**\n\n            Script that runs the [S2I](https://github.com/openshift/source-to-image) test framework.\n","funding_links":[],"categories":["\u003ca id=\"8c5a692b5d26527ef346687e047c5c21\"\u003e\u003c/a\u003e收集"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fs2i-php-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fs2i-php-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fs2i-php-container/lists"}