Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
edc83f79
Commit
edc83f79
authored
Jun 15, 2023
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/lamp: allow more custom configurations
parent
14d13a6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+6
-2
stack/lamp/buildout.hash.cfg
stack/lamp/buildout.hash.cfg
+2
-2
stack/lamp/instance-apache-php.cfg.in
stack/lamp/instance-apache-php.cfg.in
+3
-0
stack/lamp/instance.cfg.in
stack/lamp/instance.cfg.in
+1
-0
No files found.
stack/lamp/buildout.cfg
View file @
edc83f79
...
@@ -68,7 +68,8 @@ db-name = lamp
...
@@ -68,7 +68,8 @@ db-name = lamp
db-user = lamp
db-user = lamp
# Publish default lamp slave frontend url
# Publish default lamp slave frontend url
default-frontend = True
default-frontend = True
# Use php7 or php8 in apache
enable-php8 = False
[composer]
[composer]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
...
@@ -106,7 +107,9 @@ command =
...
@@ -106,7 +107,9 @@ command =
INSTAL_DIR=${composer:location}/bin
INSTAL_DIR=${composer:location}/bin
PATH=${apache-php:location}/bin:$PATH
PATH=${apache-php:location}/bin:$PATH
mkdir -p $INSTAL_DIR
mkdir -p $INSTAL_DIR
php ${composer:location}/composer-setup.php --install-dir=$INSTAL_DIR --filename=composer-bin
php ${composer:location}/composer-setup.php --install-dir=$INSTAL_DIR \
--filename=composer-bin ${:custom-args}
custom-args =
stop-on-error = true
stop-on-error = true
update-command = ${:command}
update-command = ${:command}
...
@@ -133,6 +136,7 @@ context =
...
@@ -133,6 +136,7 @@ context =
key application_archive_root application:archive-root
key application_archive_root application:archive-root
key application_deployment_part_list custom-application-deployment:part-list
key application_deployment_part_list custom-application-deployment:part-list
key application_deployment_publish_list custom-application-deployment:publish-list
key application_deployment_publish_list custom-application-deployment:publish-list
key application_deployment_php8 custom-application-deployment:enable-php8
key apache_location apache:location
key apache_location apache:location
key apache_php_location apache-php:location
key apache_php_location apache-php:location
key bash_location bash:location
key bash_location bash:location
...
...
stack/lamp/buildout.hash.cfg
View file @
edc83f79
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
# not need these here).
# not need these here).
[lamp-instance]
[lamp-instance]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
8940540752d7eef8dc625a31393ca1
4e
md5sum =
dceee17902b7424f995ab023200a6b
4e
[instance-apache-php]
[instance-apache-php]
filename = instance-apache-php.cfg.in
filename = instance-apache-php.cfg.in
md5sum =
765372ad68b61f117f666f30f0ad153f
md5sum =
a85e0ddd77b7944367f46344f8b90df4
[instance-lamp]
[instance-lamp]
filename = instance-lamp.cfg.jinja2.in
filename = instance-lamp.cfg.jinja2.in
...
...
stack/lamp/instance-apache-php.cfg.in
View file @
edc83f79
...
@@ -143,6 +143,9 @@ php-ini-dir = ${directory:php-ini-dir}
...
@@ -143,6 +143,9 @@ php-ini-dir = ${directory:php-ini-dir}
cert-file = ${ca-directory:certs}/httpd.crt
cert-file = ${ca-directory:certs}/httpd.crt
key-file = ${ca-directory:certs}/httpd.key
key-file = ${ca-directory:certs}/httpd.key
apache-config-dir = ${directory:apache.d}
apache-config-dir = ${directory:apache.d}
{% if parameter_dict['application-enable-php8'] -%}
enable-php8 = !py!True
{% endif -%}
[lamp-apache-httpd]
[lamp-apache-httpd]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
stack/lamp/instance.cfg.in
View file @
edc83f79
...
@@ -65,6 +65,7 @@ application-location = {{ application_location }}/{{ application_archive_root }}
...
@@ -65,6 +65,7 @@ application-location = {{ application_location }}/{{ application_archive_root }}
application-location = {{ application_location }}
application-location = {{ application_location }}
{% endif %}
{% endif %}
application-part-list = {{ application_deployment_part_list }}
application-part-list = {{ application_deployment_part_list }}
application-enable-php8 = !py!{{ application_deployment_php8 }}
template-apache-conf = {{ template_apache_conf }}
template-apache-conf = {{ template_apache_conf }}
apache-location = {{ apache_location }}
apache-location = {{ apache_location }}
apache-php-location = {{ apache_php_location }}
apache-php-location = {{ apache_php_location }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment