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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nirina Malard
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
db-user = lamp
# Publish default lamp slave frontend url
default-frontend = True
# Use php7 or php8 in apache
enable-php8 = False
[composer]
recipe = slapos.recipe.build:download
...
...
@@ -106,7 +107,9 @@ command =
INSTAL_DIR=${composer:location}/bin
PATH=${apache-php:location}/bin:$PATH
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
update-command = ${:command}
...
...
@@ -133,6 +136,7 @@ context =
key application_archive_root application:archive-root
key application_deployment_part_list custom-application-deployment:part-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_php_location apache-php:location
key bash_location bash:location
...
...
stack/lamp/buildout.hash.cfg
View file @
edc83f79
...
...
@@ -14,11 +14,11 @@
# not need these here).
[lamp-instance]
filename = instance.cfg.in
md5sum =
8940540752d7eef8dc625a31393ca1
4e
md5sum =
dceee17902b7424f995ab023200a6b
4e
[instance-apache-php]
filename = instance-apache-php.cfg.in
md5sum =
765372ad68b61f117f666f30f0ad153f
md5sum =
a85e0ddd77b7944367f46344f8b90df4
[instance-lamp]
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}
cert-file = ${ca-directory:certs}/httpd.crt
key-file = ${ca-directory:certs}/httpd.key
apache-config-dir = ${directory:apache.d}
{% if parameter_dict['application-enable-php8'] -%}
enable-php8 = !py!True
{% endif -%}
[lamp-apache-httpd]
recipe = slapos.recipe.template:jinja2
...
...
stack/lamp/instance.cfg.in
View file @
edc83f79
...
...
@@ -65,6 +65,7 @@ application-location = {{ application_location }}/{{ application_archive_root }}
application-location = {{ application_location }}
{% endif %}
application-part-list = {{ application_deployment_part_list }}
application-enable-php8 = !py!{{ application_deployment_php8 }}
template-apache-conf = {{ template_apache_conf }}
apache-location = {{ apache_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