Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 4f829c0

Browse files
author
Sven Speckmaier
committed
added short introduction to the blueprint in the readme.md
1 parent 141cfb4 commit 4f829c0

File tree

1 file changed

+80
-1
lines changed

1 file changed

+80
-1
lines changed

README.md

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,80 @@
1-
# rancherize-blueprint-php-cli
1+
# rancherize-blueprint-php-cli
2+
Rancherize blueprint to run a single php command, optionally with cron label to run regularly.
3+
4+
## Use
5+
6+
### Install
7+
8+
rancherize plugin:install ipunkt/rancherize-blueprint-php-cli:1.0.0
9+
10+
### Init
11+
Init local development environment
12+
13+
rancherize init php-cli --dev local
14+
15+
Init push environment to be used with a rancher server
16+
17+
rancherize init php-cli production
18+
19+
Note that as of the time of writing all environments will use the same blueprint
20+
21+
### Configuration
22+
23+
#### Differences from WebserverBlueprint
24+
- `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.
25+
- `add-composer`: Add a composer.phar to your app directory
26+
27+
#### Supported rancherize services
28+
- [scheduler](https://github.com/ipunkt/rancherize/tree/master/app/Blueprint/Scheduler)
29+
- 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
30+
31+
#### Example:
32+
```json
33+
{
34+
"default": {
35+
"rancher": {
36+
"account": "accountname",
37+
"in-service": true
38+
},
39+
"docker": {
40+
"account": "accountname",
41+
"repository": "dockername\/reponame",
42+
"version-prefix": "cli_test_",
43+
"base-image": "php:7.0-alpine"
44+
},
45+
"service-name": "ServiceName",
46+
"php": "7.0",
47+
"add-composer": false,
48+
"command": "artisan",
49+
"schedule":{
50+
"hour":"*/2"
51+
},
52+
"scheduler": {
53+
"enable": true
54+
}
55+
},
56+
"environments": {
57+
"local": {
58+
"mount-workdir": true,
59+
"external_links": [],
60+
"environment": {
61+
"EXAMPLE": "value"
62+
}
63+
},
64+
"staging": {
65+
"rancher": {
66+
"stack": "Cli-Test"
67+
},
68+
"scheduler": {
69+
"tags": {
70+
"apps": "true"
71+
}
72+
},
73+
"external_links": [],
74+
"environment": {
75+
"EXAMPLE": "value"
76+
}
77+
}
78+
}
79+
}
80+
```

0 commit comments

Comments
 (0)