v0.3 -- stabilisation, adding in support for other git repo for rebuilding \o/

This commit is contained in:
dsainty 2024-06-17 18:58:26 +10:00
parent 0c70be0c21
commit 0e5271c94c

View File

@ -1,5 +1,5 @@
## saint v0.2 ## saint v0.3
### 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
## /var/discourse/launcher rebuild app ## /var/discourse/launcher rebuild app
@ -100,12 +100,9 @@ hooks:
after_code: after_code:
- exec: - exec:
cd: /var/www/discourse/plugins cd: /var/www/discourse/plugins
#cd: $home/plugins
cmd: cmd:
- 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
cd: $home
cmd:
- 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
@ -113,8 +110,9 @@ hooks:
- exec: - exec:
cd: /var/www/discourse cd: /var/www/discourse
cmd: cmd:
- apt-get update && apt-get install -y vim - apt-get install -y vim
- cp /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/ - cp /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/
- chown -R discourse:discourse /var/www/discourse/script/import_scripts/goss*.rb
#- mkdir /var/www/discourse/plugins/md5_authentication #- mkdir /var/www/discourse/plugins/md5_authentication
#- cp -a /shared/slowtwitch/md5_authentication/plugin.rb /var/www/discourse/plugins/plugin.rb #- cp -a /shared/slowtwitch/md5_authentication/plugin.rb /var/www/discourse/plugins/plugin.rb