{"id":22908842,"url":"https://github.com/ipunkt/rancherize-blueprint-php-cli","last_synced_at":"2025-08-12T07:32:50.702Z","repository":{"id":56993251,"uuid":"97949308","full_name":"ipunkt/rancherize-blueprint-php-cli","owner":"ipunkt","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-30T16:18:56.000Z","size":29,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-08T11:46:20.745Z","etag":null,"topics":["php7","rancher","rancher-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/ipunkt.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":"2017-07-21T13:18:58.000Z","updated_at":"2020-05-16T17:28:34.000Z","dependencies_parsed_at":"2022-08-21T10:40:38.573Z","dependency_job_id":null,"html_url":"https://github.com/ipunkt/rancherize-blueprint-php-cli","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Francherize-blueprint-php-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Francherize-blueprint-php-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Francherize-blueprint-php-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipunkt%2Francherize-blueprint-php-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipunkt","download_url":"https://codeload.github.com/ipunkt/rancherize-blueprint-php-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229654725,"owners_count":18103411,"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":["php7","rancher","rancher-api"],"created_at":"2024-12-14T03:32:34.676Z","updated_at":"2024-12-14T03:32:35.389Z","avatar_url":"https://github.com/ipunkt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rancherize-blueprint-php-cli\nRancherize blueprint to run a single php command, optionally with cron label to run regularly.\n\n## Use\n\n### Install\n\n\trancherize plugin:install ipunkt/rancherize-blueprint-php-cli:1.0.0\n\n### Init\nInit local development environment\n\n\trancherize init php-cli --dev local\n\t\nInit push environment to be used with a rancher server\t\n\n\trancherize init php-cli production\n\t\nNote that as of the time of writing all environments will use the same blueprint\n\t\n### Configuration\n\n#### Differences from WebserverBlueprint\n- `command`: The command that will be executed. The exact command that will be run is `php VALUEGIVEN` inside `/var/cli/app` where your app is mounted.\n- `add-composer`: Add a composer.phar to your app directory\n\nThe base image version will be resolved in the following steps:\n1. `php` set a version, then use `php:$version-alpine`\n2. `docker.base-image` set, then use this image\n3. nothing of the above, use `php:7.0-alpine`\n\n#### Supported rancherize services\n- [scheduler](https://github.com/ipunkt/rancherize/tree/master/app/Blueprint/Scheduler)\n- Cron [schedule](https://github.com/ipunkt/rancherize/tree/master/app/Blueprint/Cron) IMPORTANT: Not the full `cron` syntax is supported. Only the `schedule` part is used on the top level of the environment\n\n#### Example:\n```json\n{\n    \"default\": {\n        \"rancher\": {\n            \"account\": \"accountname\",\n            \"in-service\": true\n        },\n        \"docker\": {\n            \"account\": \"accountname\",\n            \"repository\": \"dockername\\/reponame\",\n            \"version-prefix\": \"cli_test_\",\n            \"base-image\": \"php:7.0-alpine\"\n        },\n        \"service-name\": \"ServiceName\",\n        \"php\": \"7.0\",\n        \"add-composer\": false,\n        \"command\": \"artisan\",\n        \"schedule\":{\n          \"hour\":\"*/2\"\n        },\n        \"scheduler\": {\n            \"enable\": true\n        }\n    },\n    \"environments\": {\n        \"local\": {\n            \"mount-workdir\": true,\n            \"external_links\": [],\n            \"environment\": {\n                \"EXAMPLE\": \"value\"\n            }\n        },\n        \"staging\": {\n            \"rancher\": {\n                \"stack\": \"Cli-Test\"\n            },\n            \"scheduler\": {\n                \"tags\": {\n                    \"apps\": \"true\"\n                }\n            },\n            \"external_links\": [],\n            \"environment\": {\n                \"EXAMPLE\": \"value\"\n            }\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Francherize-blueprint-php-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipunkt%2Francherize-blueprint-php-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipunkt%2Francherize-blueprint-php-cli/lists"}