{"id":20795670,"url":"https://github.com/graze/docker-composer","last_synced_at":"2025-05-06T07:27:08.784Z","repository":{"id":71157693,"uuid":"51749848","full_name":"graze/docker-composer","owner":"graze","description":":notes: A small Docker image for composer.","archived":false,"fork":false,"pushed_at":"2017-09-19T09:58:43.000Z","size":67,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-21T01:10:26.163Z","etag":null,"topics":["composer","docker"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/graze/composer/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-02-15T11:01:40.000Z","updated_at":"2019-05-10T09:58:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ccfa6a7-6378-41dd-bab6-9e053f2a94e6","html_url":"https://github.com/graze/docker-composer","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/graze%2Fdocker-composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graze%2Fdocker-composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graze%2Fdocker-composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graze%2Fdocker-composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graze","download_url":"https://codeload.github.com/graze/docker-composer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252639041,"owners_count":21780674,"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":["composer","docker"],"created_at":"2024-11-17T16:23:12.552Z","updated_at":"2025-05-06T07:27:08.778Z","avatar_url":"https://github.com/graze.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graze/docker-composer\n\n[![Build Status](https://img.shields.io/travis/graze/docker-composer/master.svg)](https://travis-ci.org/graze/docker-composer)\n[![Docker Pulls](https://img.shields.io/docker/pulls/graze/composer.svg)](https://hub.docker.com/r/graze/composer/)\n[![Image Size](https://images.microbadger.com/badges/image/graze/composer.svg)](https://microbadger.com/images/graze/composer)\n\nA _small_ Docker image for [composer](https://getcomposer.org), a dependency management tool for PHP.\n\n## Images\n\nThis repository generates an image for each composer version, php version and combination thereof\n\nThe available composer versions are:\n\n* `1.5.1`, `latest`\n* `1.5.0`\n* `1.4.3`\n* `1.4.2`\n* `1.4.1`\n* `1.4.0`\n* `1.3.3`\n* `1.3.2`\n* `1.3.1`\n* `1.3.0`\n\nThe available php versions are:\n\n* `php-7.1`, `latest` ([php-7.1/Dockerfile](https://github.com/graze/docker-composer/blob/master/php-7.1/Dockerfile))\n* `php-7.0` ([php-7.0/Dockerfile](https://github.com/graze/docker-composer/blob/master/php-7.0/Dockerfile))\n* `php-5.6` ([php-5.6/Dockerfile](https://github.com/graze/docker-composer/blob/master/php-5.6/Dockerfile))\n\nCombination images are in the format: `{composer_ver}-php{php_ver}`\n\n* `1.4.1-php7.1`\n* `1.4.0-php5.6`\n* etc...\n\n## Usage\n\n```bash\n~$ docker run --rm -it \\\n    -v $(pwd):/usr/src/app \\\n    -v ~/.composer:/home/composer/.composer \\\n    -v ~/.ssh/id_rsa:/home/composer/.ssh/id_rsa:ro \\\n   graze/composer\n```\n\n### Simulating the platform\n\nTo be able to simulate a platform environment to install you can use the composer configuration option [platform](https://getcomposer.org/doc/06-config.md#platform).\n\n```json\n{\"config\": {\"platform\": {\n    \"php\": \"5.6\",\n    \"ext-something\": \"4.0.0\"\n}}}\n```\n\nYou can use this, or the `:php-XX` tags to specify that target platform that you want the packages to be installed on.\n\n## Image Updates\n\nThe Docker Hub image ([graze/composer](https://hub.docker.com/r/graze/composer/)) is an automated build that's also rebuilt daily to pickup any composer updates.\n\n## Development\n\nYou can build an individual image with:\n\n```bash\n~$ PHP_VER=7.1 COMPOSER_VER=1.4.1 make build\n```\n\nor build and test all images with:\n\n```bash\n~$ make all-build all-test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraze%2Fdocker-composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraze%2Fdocker-composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraze%2Fdocker-composer/lists"}