1
1
# |--------------------------------------------------------------------------
2
- # | Orbit build commands
2
+ # | Build tasks
3
3
# |--------------------------------------------------------------------------
4
4
# |
5
- # | This file describes the build commands of your project.
6
- # | Feel free to add your own commands !
5
+ # | This file describes the build tasks of your project.
6
+ # | Feel free to add your own tasks !
7
7
# |
8
8
# | https://github.com/gulien/orbit/
9
9
# |
10
10
11
- commands :
11
+ tasks :
12
12
13
13
# |--------------------------------------------------------------------------
14
14
# | orbit run docker-sync-build
@@ -19,11 +19,9 @@ commands:
19
19
20
20
- use : docker-sync-build
21
21
run :
22
- {{ if eq "true" .EnvFiles.Config.ENABLE_DOCKER_SYNC }}
23
- - orbit generate -t docker-sync.blueprint.yml -o docker-sync.yml -v Project,config/project.yml -e Config,config/.env {{ if debug }}-d{{ end }}
24
- - orbit run script-fix-permissions-docker-sync -c config/orbit/orbit-scripts.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
25
- {{ else if eq "windows" os }}
26
- - cmd.exe /c echo Skipping Docker Sync configuration file generation ...
22
+ {{ if eq "true" .Orbit.EnvFile.ENABLE_DOCKER_SYNC }}
23
+ - orbit generate -f docker-sync.blueprint.yml -o docker-sync.yml {{ if debug }}-d{{ end }}
24
+ - orbit run script-fix-permissions-docker-sync -f config/orbit/orbit-scripts.yml {{ if debug }}-d{{ end }}
27
25
{{ else }}
28
26
- echo Skipping Docker Sync configuration file generation ...
29
27
{{ end }}
@@ -37,7 +35,7 @@ commands:
37
35
38
36
- use : toolbox-build
39
37
run :
40
- - orbit generate -t modules/toolbox/docker-compose.blueprint.yml -o modules/toolbox/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
38
+ - orbit generate -f modules/toolbox/docker-compose.blueprint.yml -o modules/toolbox/docker-compose.yml {{ if debug }}-d{{ end }}
41
39
42
40
# |--------------------------------------------------------------------------
43
41
# | orbit run traefik-build
@@ -48,10 +46,10 @@ commands:
48
46
49
47
- use : traefik-build
50
48
run :
51
- - orbit run script-traefik-self-signed-certificate -c config/orbit/orbit-scripts.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
52
- - orbit run script-traefik-htdigest -c config/orbit/orbit-scripts.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
53
- - orbit generate -t modules/traefik/traefik.blueprint.toml -o modules/traefik/traefik.toml -v Project,config/project.yml -e Config,config/.env {{ if debug }}-d{{ end }}
54
- - orbit generate -t modules/traefik/docker-compose.blueprint.yml -o modules/traefik/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
49
+ - orbit run script-traefik-self-signed-certificate -f config/orbit/orbit-scripts.yml {{ if debug }}-d{{ end }}
50
+ - orbit run script-traefik-htdigest -f config/orbit/orbit-scripts.yml {{ if debug }}-d{{ end }}
51
+ - orbit generate -f modules/traefik/traefik.blueprint.toml -o modules/traefik/traefik.toml {{ if debug }}-d{{ end }}
52
+ - orbit generate -f modules/traefik/docker-compose.blueprint.yml -o modules/traefik/docker-compose.yml {{ if debug }}-d{{ end }}
55
53
56
54
# |--------------------------------------------------------------------------
57
55
# | orbit run graylog-build
@@ -62,12 +60,10 @@ commands:
62
60
63
61
- use : graylog-build
64
62
run :
65
- {{ if eq true .Values.Modules.graylog.enable }}
66
- - orbit generate -t modules/graylog/docker-compose.blueprint.yml -o modules/graylog/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
67
- - orbit generate -t modules/graylog/udp-input.blueprint.json -o modules/graylog/udp-input.json -e Config,config/.env {{ if debug }}-d{{ end }}
68
- - orbit run script-graylog-secrets -c config/orbit/orbit-scripts.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
69
- {{ else if eq "windows" os }}
70
- - cmd.exe /c echo Skipping Graylog configuration files generation ...
63
+ {{ if eq true .Orbit.Modules.graylog.enable }}
64
+ - orbit generate -f modules/graylog/docker-compose.blueprint.yml -o modules/graylog/docker-compose.yml {{ if debug }}-d{{ end }}
65
+ - orbit generate -f modules/graylog/udp-input.blueprint.json -o modules/graylog/udp-input.json {{ if debug }}-d{{ end }}
66
+ - orbit run script-graylog-secrets -f config/orbit/orbit-scripts.yml {{ if debug }}-d{{ end }}
71
67
{{ else }}
72
68
- echo Skipping Graylog configuration files generation ...
73
69
{{ end }}
@@ -76,16 +72,16 @@ commands:
76
72
# | orbit run php-fpm-build
77
73
# |--------------------------------------------------------------------------
78
74
# |
79
- # | Generates PHP-FPM configuration files and builds the image .
75
+ # | Generates PHP-FPM configuration files.
80
76
# |
81
77
82
78
- use : php-fpm-build
83
79
run :
84
- - orbit generate -t modules/php-fpm/docker-compose.blueprint.yml -o modules/php-fpm/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
85
- - orbit run script-fix-permissions-php-fpm -c config/orbit/orbit-scripts.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
86
- - orbit generate -t modules/php-fpm/conf.d/memory-limit.blueprint.ini -o modules/php-fpm/conf.d/memory-limit.ini -e Config,config/.env {{ if debug }}-d{{ end }}
87
- - orbit generate -t modules/php-fpm/php-fpm.d/memory-limit.blueprint.conf -o modules/php-fpm/php-fpm.d/memory-limit.conf -e Config,config/.env {{ if debug }}-d{{ end }}
88
- - orbit generate -t modules/php-fpm/php-fpm.d/security.blueprint.conf -o modules/php-fpm/php-fpm.d/security.conf -e Config,config/.env {{ if debug }}-d{{ end }}
80
+ - orbit generate -f modules/php-fpm/docker-compose.blueprint.yml -o modules/php-fpm/docker-compose.yml {{ if debug }}-d{{ end }}
81
+ - orbit run script-fix-permissions-php-fpm -f config/orbit/orbit-scripts.yml {{ if debug }}-d{{ end }}
82
+ - orbit generate -f modules/php-fpm/conf.d/memory-limit.blueprint.ini -o modules/php-fpm/conf.d/memory-limit.ini {{ if debug }}-d{{ end }}
83
+ - orbit generate -f modules/php-fpm/php-fpm.d/memory-limit.blueprint.conf -o modules/php-fpm/php-fpm.d/memory-limit.conf {{ if debug }}-d{{ end }}
84
+ - orbit generate -f modules/php-fpm/php-fpm.d/security.blueprint.conf -o modules/php-fpm/php-fpm.d/security.conf {{ if debug }}-d{{ end }}
89
85
90
86
# |--------------------------------------------------------------------------
91
87
# | orbit run nginx-build
@@ -96,9 +92,9 @@ commands:
96
92
97
93
- use : nginx-build
98
94
run :
99
- - orbit generate -t modules/nginx/docker-compose.blueprint.yml -o modules/nginx/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
100
- - orbit run script-fix-permissions-nginx -c config/orbit/orbit-scripts.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
101
- - docker-compose -p {{ .EnvFiles.Config .ENV }}{{ .Values .Project.name }} -f modules/nginx/docker-compose.yml build
95
+ - orbit generate -f modules/nginx/docker-compose.blueprint.yml -o modules/nginx/docker-compose.yml {{ if debug }}-d{{ end }}
96
+ - orbit run script-fix-permissions-nginx -f config/orbit/orbit-scripts.yml {{ if debug }}-d{{ end }}
97
+ - docker-compose -p {{ .Orbit.EnvFile .ENV }}{{ .Orbit .Project.name }} -f modules/nginx/docker-compose.yml build
102
98
103
99
# |--------------------------------------------------------------------------
104
100
# | orbit run mysql-build
@@ -109,13 +105,11 @@ commands:
109
105
110
106
- use : mysql-build
111
107
run :
112
- {{ if eq true .Values.Modules.mysql.enable }}
113
- - orbit generate -t modules/mysql/docker-compose.blueprint.yml -o modules/mysql/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
114
- - orbit generate -t modules/mysql/docker-entrypoint-initdb.d/databases.blueprint.sql -o modules/mysql/docker-entrypoint-initdb.d/databases.sql -v Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
115
- - orbit generate -t modules/mysql/secrets/mysql_password.blueprint.txt -o modules/mysql/secrets/mysql_password.txt -e Config,config/.env {{ if debug }}-d{{ end }}
116
- - orbit generate -t modules/mysql/secrets/mysql_root_password.blueprint.txt -o modules/mysql/secrets/mysql_root_password.txt -e Config,config/.env {{ if debug }}-d{{ end }}
117
- {{ else if eq "windows" os }}
118
- - cmd.exe /c echo Skipping MySQL configuration files generation ...
108
+ {{ if eq true .Orbit.Modules.mysql.enable }}
109
+ - orbit generate -f modules/mysql/docker-compose.blueprint.yml -o modules/mysql/docker-compose.yml {{ if debug }}-d{{ end }}
110
+ - orbit generate -f modules/mysql/docker-entrypoint-initdb.d/databases.blueprint.sql -o modules/mysql/docker-entrypoint-initdb.d/databases.sql {{ if debug }}-d{{ end }}
111
+ - orbit generate -f modules/mysql/secrets/mysql_password.blueprint.txt -o modules/mysql/secrets/mysql_password.txt {{ if debug }}-d{{ end }}
112
+ - orbit generate -f modules/mysql/secrets/mysql_root_password.blueprint.txt -o modules/mysql/secrets/mysql_root_password.txt {{ if debug }}-d{{ end }}
119
113
{{ else }}
120
114
- echo Skipping MySQL configuration files generation ...
121
115
{{ end }}
@@ -129,10 +123,8 @@ commands:
129
123
130
124
- use : redis-build
131
125
run :
132
- {{ if eq true .Values.Modules.redis.enable }}
133
- - orbit generate -t modules/redis/docker-compose.blueprint.yml -o modules/redis/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
134
- {{ else if eq "windows" os }}
135
- - cmd.exe /c echo Skipping Redis configuration files generation ...
126
+ {{ if eq true .Orbit.Modules.redis.enable }}
127
+ - orbit generate -f modules/redis/docker-compose.blueprint.yml -o modules/redis/docker-compose.yml {{ if debug }}-d{{ end }}
136
128
{{ else }}
137
129
- echo Skipping Redis configuration files generation ...
138
130
{{ end }}
@@ -146,10 +138,8 @@ commands:
146
138
147
139
- use : rabbitmq-build
148
140
run :
149
- {{ if eq true .Values.Modules.rabbitmq.enable }}
150
- - orbit generate -t modules/rabbitmq/docker-compose.blueprint.yml -o modules/rabbitmq/docker-compose.yml -v Project,config/project.yml;Modules,config/modules.yml -e Config,config/.env {{ if debug }}-d{{ end }}
151
- {{ else if eq "windows" os }}
152
- - cmd.exe /c echo Skipping RabbitMQ configuration files generation ...
141
+ {{ if eq true .Orbit.Modules.rabbitmq.enable }}
142
+ - orbit generate -f modules/rabbitmq/docker-compose.blueprint.yml -o modules/rabbitmq/docker-compose.yml {{ if debug }}-d{{ end }}
153
143
{{ else }}
154
144
- echo Skipping RabbitMQ configuration files generation ...
155
145
{{ end }}
0 commit comments