2017 © Pedro Peláez
 

project rancherize-blueprint-php-cli

rancherize php cli blueprint

image

ipunkt/rancherize-blueprint-php-cli

rancherize php cli blueprint

  • Friday, February 2, 2018
  • by svensp
  • Repository
  • 3 Watchers
  • 0 Stars
  • 2,909 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

rancherize-blueprint-php-cli

Rancherize blueprint to run a single php command, optionally with cron label to run regularly., (*1)

Use

Install

rancherize plugin:install ipunkt/rancherize-blueprint-php-cli:1.0.0

Init

Init local development environment, (*2)

rancherize init php-cli --dev local

Init push environment to be used with a rancher server, (*3)

rancherize init php-cli production

Note that as of the time of writing all environments will use the same blueprint, (*4)

Configuration

Differences from WebserverBlueprint

  • 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.
  • add-composer: Add a composer.phar to your app directory

The base image version will be resolved in the following steps: 1. php set a version, then use php:$version-alpine 2. docker.base-image set, then use this image 3. nothing of the above, use php:7.0-alpine, (*5)

Supported rancherize services

  • scheduler
  • Cron schedule IMPORTANT: Not the full cron syntax is supported. Only the schedule part is used on the top level of the environment

Example:

{
    "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"
            }
        }
    }
}

The Versions

02/02 2018

dev-master

9999999-dev

rancherize php cli blueprint

  Sources   Download

MIT

The Requires

 

by Sven Speckmaier

02/02 2018

1.1.0

1.1.0.0

rancherize php cli blueprint

  Sources   Download

MIT

The Requires

 

by Sven Speckmaier

20/10 2017

1.0.1

1.0.1.0

rancherize php cli blueprint

  Sources   Download

MIT

The Requires

 

by Sven Speckmaier

14/08 2017

1.0.0

1.0.0.0

rancherize php cli blueprint

  Sources   Download

MIT

The Requires

 

by Sven Speckmaier