-
Notifications
You must be signed in to change notification settings - Fork 22
/
composer.json
61 lines (61 loc) · 2.54 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "travisghansen/kubernetes-pfsense-controller",
"type": "project",
"description": "Integrate Kubernetes and pfSense",
"license": "Apache-2.0",
"keywords": ["kubernetes", "api", "client", "k8s", "php", "controller", "pfsense", "firewall", "cluster", "metallb", "dns", "ingress", "ingresses", "loadbalancer", "haproxy"],
"homepage": "https://github.com/travisghansen/kubernetes-pfsense-controller/",
"authors": [
{
"name" : "Travis Glenn Hansen"
}
],
"require": {
"php": ">=7.3.0",
"ext-yaml": "*",
"ext-pcntl": "*",
"ext-json": "*",
"ext-bz2": "*",
"ext-bcmath": "*",
"travisghansen/kubernetes-controller-php": "0.1.*",
"travisghansen/kubernetes-client-php": "0.3.*",
"vlucas/phpdotenv": "^2.5",
"composer/semver": "^3.2",
"laminas/laminas-xmlrpc": "^2.10"
},
"autoload": {
"psr-0": {"KubernetesPfSenseController\\": "src/"}
},
"scripts": {
"buildphar": [
"@removevendor",
"@composer install --prefer-dist --no-dev --no-progress --no-suggest --optimize-autoloader --classmap-authoritative --apcu-autoloader --ignore-platform-reqs --ansi --no-interaction",
"@downloadpharbuilder",
"@php -d phar.readonly=0 phar-builder.phar --name=kubernetes-pfsense-controller-${APP_VERSION:-$(git describe --exact-match --tags 2>/dev/null || git symbolic-ref --short -q HEAD)}.phar package composer.json",
"cp releases/kubernetes-pfsense-controller-${APP_VERSION:-$(git describe --exact-match --tags 2>/dev/null || git symbolic-ref --short -q HEAD)}.phar releases/docker.phar",
"chmod +x releases/*.phar",
"ls -l releases/*.phar"
],
"removevendor": [
"rm -rf vendor"
],
"downloadpharbuilder": [
"if [ ! -f phar-builder.phar ];then curl -o phar-builder.phar -L `curl -s https://api.github.com/repos/MacFJA/PharBuilder/releases | grep browser_download_url | head -n 1 | cut -d '\"' -f 4`;fi"
],
"appversion": [
"echo ${APP_VERSION:-$(git describe --exact-match --tags 2>/dev/null || git symbolic-ref --short -q HEAD)}"
]
},
"extra": {
"phar-builder": {
"compression": "BZip2",
"output-dir": "./releases",
"entry-point": "controller.php",
"include": [
"./.env.example"
],
"include-dev": false,
"skip-shebang" : false
}
}
}