{"id":16413634,"url":"https://github.com/startxfr/docker-images-example-php","last_synced_at":"2025-09-03T05:43:01.616Z","repository":{"id":150318899,"uuid":"121984165","full_name":"startxfr/docker-images-example-php","owner":"startxfr","description":"Example of a php dynamic web application to use with startx s2i builder","archived":false,"fork":false,"pushed_at":"2024-06-21T09:13:47.000Z","size":6414,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T07:48:48.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/startxfr.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-18T19:41:34.000Z","updated_at":"2024-06-21T09:13:50.000Z","dependencies_parsed_at":"2024-06-22T02:26:53.409Z","dependency_job_id":"83210b47-ec17-439a-ab89-0a81b92d3ef9","html_url":"https://github.com/startxfr/docker-images-example-php","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/startxfr/docker-images-example-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/startxfr","download_url":"https://codeload.github.com/startxfr/docker-images-example-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/startxfr%2Fdocker-images-example-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273397843,"owners_count":25098234,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T06:51:58.475Z","updated_at":"2025-09-03T05:43:01.581Z","avatar_url":"https://github.com/startxfr.png","language":"Shell","readme":"\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/startxfr/docker-images/master/travis/logo-small.svg?sanitize=true\"\u003e\n\n# docker-images-example-php\n\n\nExample of a dynamic web application using the startx s2i builder [startx/sv-php](https://hub.docker.com/r/startx/sv-php). \nFor more information on how to use this image, **[read startx php image guideline](https://github.com/startxfr/docker-images/blob/master/Services/php/README.md)**.\n\n## Running this example in OKD (aka Openshift)\n\n### Create a sample application\n\n```bash\n# Create a openshift project\noc new-project startx-example-php\n# start a new application (build and run)\noc process -f https://raw.githubusercontent.com/startxfr/docker-images/master/Services/php/openshift-template-build.yml -p APP_NAME=myapp | oc create -f -\n# Watch when resources are available\nsleep 30 \u0026\u0026 oc get all\n```\n\n### Create a personalized application\n\n- **Initialize** a project\n  ```bash\n  export MYAPP=myapp\n  oc new-project ${MYAPP}\n  ```\n- **Add template** to the project service catalog\n  ```bash\n  oc create -f https://raw.githubusercontent.com/startxfr/docker-images/master/Services/php/openshift-template-build.yml -n startx-example-php\n  ```\n- **Generate** your current application definition\n  ```bash\n  export MYVERSION=0.1\n  oc process -n startx-example-php -f startx-php-build-template \\\n      -p APP_NAME=v${MYVERSION} \\\n      -p APP_STAGE=example \\\n      -p BUILDER_TAG=latest \\\n      -p SOURCE_GIT=https://github.com/startxfr/docker-images-example-php.git \\\n      -p SOURCE_BRANCH=master \\\n      -p MEMORY_LIMIT=256Mi \\\n  \u003e ./${MYAPP}.definitions.yml\n  ```\n- **Review** your resources definition stored in `./${MYAPP}.definitions.yml`\n- **build and run** your application\n  ```bash\n  oc create -f ./${MYAPP}.definitions.yml -n startx-example-php\n  sleep 15 \u0026\u0026 oc get all\n  ```\n- **Test** your application\n  ```bash\n  oc describe route -n startx-example-php\n  curl http://\u003curl-route\u003e\n  ```\n\n## Running this example with source-to-image (aka s2i)\n\n### Create a sample application\n\n```bash\n# Build the application\ns2i build https://github.com/startxfr/docker-images-example-php startx/sv-php startx-php-sample\n# Run the application\ndocker run --rm -d -p 8777:8080 startx-php-sample\n# Test the sample application\ncurl http://localhost:8777\n```\n\n### Create a personalized application\n\n- **Initialize** a project directory\n  ```bash\n  git clone https://github.com/startxfr/docker-images-example-php.git php-myapp\n  cd php-myapp\n  rm -rf .git\n  ```\n- **Develop** and create a personalized page\n  ```bash\n  cat \u003c\u003c \"EOF\"\n  \u003c?php phpinfo(); ?\u003e\n  EOF \u003e index.php\n  ```\n- **Build** your current application with startx php builder\n  ```bash\n  s2i build . startx/sv-php:latest startx-php-myapp\n  ```\n- **Run** your application and test it\n  ```bash\n  docker run --rm -d -p 8777:8080 startx-php-myapp\n  ```\n- **Test** your application\n  ```bash\n  curl http://localhost:8777\n  ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartxfr%2Fdocker-images-example-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstartxfr%2Fdocker-images-example-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstartxfr%2Fdocker-images-example-php/lists"}