v0.7 Fix addition of mysql2 and sqlite3 to Gemfile for correct bundle handling.

This commit is contained in:
David Sainty 2024-06-26 15:34:09 +10:00
parent fe9a87a6cd
commit 2ad1ea6257

View File

@ -1,4 +1,4 @@
## saint v0.5 ## saint v0.7
## this is the all-in-one, standalone Discourse Docker container template ## this is the all-in-one, standalone Discourse Docker container template
## ##
## After making changes to this file, you MUST rebuild ## After making changes to this file, you MUST rebuild
@ -97,6 +97,12 @@ volumes:
## Plugins go here ## Plugins go here
## see https://meta.discourse.org/t/19157 for details ## see https://meta.discourse.org/t/19157 for details
hooks: hooks:
before_bundle_exec:
- exec:
cd: /var/www/discourse
cmd:
- echo "gem 'mysql2'" >> Gemfile
- echo "gem 'sqlite3'" >> Gemfile
after_code: after_code:
- exec: - exec:
cd: /var/www/discourse/plugins cd: /var/www/discourse/plugins
@ -104,8 +110,8 @@ hooks:
- git clone https://github.com/discourse/docker_manager.git - git clone https://github.com/discourse/docker_manager.git
- git clone https://gitea.federated.computer/saint/discourse-md5_authentication.git - git clone https://gitea.federated.computer/saint/discourse-md5_authentication.git
- apt-get update && apt-get install -y sqlite3 libsqlite3-dev libmariadb-dev - apt-get update && apt-get install -y sqlite3 libsqlite3-dev libmariadb-dev
- gem install mysql2 #- gem install mysql2
- gem install sqlite3 #- gem install sqlite3
after_bundle_exec: after_bundle_exec:
- exec: - exec:
cd: /var/www/discourse/script/import_scripts cd: /var/www/discourse/script/import_scripts