PHP code example of ipunkt / rancherize-blueprint-php-cli

1. Go to this page and download the library: Download ipunkt/rancherize-blueprint-php-cli library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ipunkt / rancherize-blueprint-php-cli example snippets

json
{
    "default": {
        "rancher": {
            "account": "accountname",
            "in-service": true
        },
        "docker": {
            "account": "accountname",
            "repository": "dockername\/reponame",
            "version-prefix": "cli_test_",
            "base-image": "php:7.0-alpine"
        },
        "service-name": "ServiceName",
        "php": "7.0",
        "add-composer": false,
        "command": "artisan",
        "schedule":{
          "hour":"*/2"
        },
        "scheduler": {
            "enable": true
        }
    },
    "environments": {
        "local": {
            "mount-workdir": true,
            "external_links": [],
            "environment": {
                "EXAMPLE": "value"
            }
        },
        "staging": {
            "rancher": {
                "stack": "Cli-Test"
            },
            "scheduler": {
                "tags": {
                    "apps": "true"
                }
            },
            "external_links": [],
            "environment": {
                "EXAMPLE": "value"
            }
        }
    }
}