Install and configure Decidim plugins, related to #490
This commit is contained in:
parent
082a9fb50d
commit
88893abc50
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.23.1-210106",
|
"version": "0.23.1-210110",
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "Decidim",
|
"title": "Decidim",
|
||||||
"desc-cs": "Platforma pro účast občanů",
|
"desc-cs": "Platforma pro účast občanů",
|
||||||
@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"containers": {
|
"containers": {
|
||||||
"decidim": {
|
"decidim": {
|
||||||
"image": "decidim_0.23.1-210106",
|
"image": "decidim_0.23.1-210110",
|
||||||
"depends": [
|
"depends": [
|
||||||
"decidim-postgres"
|
"decidim-postgres"
|
||||||
],
|
],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
IMAGE decidim_0.23.1-210106
|
IMAGE decidim_0.23.1-210110
|
||||||
FROM decidim-nginx_1.18.0-210106
|
FROM decidim-nginx_1.18.0-210106
|
||||||
|
|
||||||
# https://github.com/Platoniq/decidim-install/blob/master/decidim-bionic.md
|
# https://github.com/Platoniq/decidim-install/blob/master/decidim-bionic.md
|
||||||
|
@ -38,3 +38,25 @@ group :production do
|
|||||||
gem "delayed_job_active_record"
|
gem "delayed_job_active_record"
|
||||||
gem "daemons"
|
gem "daemons"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Modules
|
||||||
|
# gem "decidim-access_requests", git: "https://github.com/mainio/decidim-module-access_requests" # Supported until 0.22.0
|
||||||
|
# gem "decidim-action_delegator", git: "https://github.com/coopdevs/decidim-module-action_delegator" # Supported until 0.22.0, not indended for production use
|
||||||
|
# gem "decidim-antivirus", git: "https://github.com/mainio/decidim-module-antivirus" # Supported until 0.22.0
|
||||||
|
# gem "decidim-budgets_enhanced", git: "https://github.com/OpenSourcePolitics/decidim-module-budgets_enhanced", branch: "0.22-dev" # Supported until 0.19.0, development branch exists up to 0.22.0
|
||||||
|
gem "decidim-calendar", git: "https://github.com/alabs/decidim-module-calendar"
|
||||||
|
# gem "decidim-comparative_stats", git: "https://github.com/Platoniq/decidim-module-comparative_stats" # Supported until 0.21.0, installable but fail assets:precompile
|
||||||
|
# gem "decidim-cookies", git: "https://github.com/OpenSourcePolitics/decidim-module_cookies" # Supported until 0.21.0
|
||||||
|
gem "decidim-decidim_awesome", git: "https://github.com/Platoniq/decidim-module-decidim_awesome"
|
||||||
|
# gem "decidim-department_admin", git: "https://github.com/gencat/decidim-department-admin" # Supported until 0.16.0
|
||||||
|
gem "decidim-direct_verifications", git: "https://github.com/Platoniq/decidim-verifications-direct_verifications"
|
||||||
|
# gem "decidim-favorites", git: "https://github.com/mainio/decidim-module-favorites" # Required by plans
|
||||||
|
gem "decidim-ldap", git: "https://github.com/diputacioBCN/decidim-diba", glob: "decidim-ldap/decidim-ldap.gemspec"
|
||||||
|
gem "decidim-navbar_links", git: "https://github.com/OpenSourcePolitics/decidim-module-navbar_links", branch: "0.23-stable"
|
||||||
|
gem "decidim-navigation_maps", git: "https://github.com/Platoniq/decidim-module-navigation_maps"
|
||||||
|
# gem "decidim-plans", git: "https://github.com/mainio/decidim-module-plans" # Supported until 0.22.0
|
||||||
|
# gem "decidim-process_groups_content_block", git: "https://github.com/mainio/decidim-module-process_groups_content_block" # Supported until 0.22.0
|
||||||
|
# gem "decidim-term_customizer", git: "https://github.com/mainio/decidim-module-term_customizer" # Supported until 0.22.0
|
||||||
|
gem "decidim-time_tracker", git: "https://github.com/Platoniq/decidim-module-time_tracker", branch: "main"
|
||||||
|
# gem "decidim-unique_identity", git: "https://github.com/OpenSourcePolitics/decidim-module-unique-identity" # Supported until 0.18.0
|
||||||
|
gem "decidim-url_aliases", git: "https://github.com/OpenSourcePolitics/decidim-urlaliases"
|
||||||
|
@ -5,7 +5,7 @@ set -ev
|
|||||||
POSTGRES_DATA="${VOLUMES_DIR}/decidim/postgres_data"
|
POSTGRES_DATA="${VOLUMES_DIR}/decidim/postgres_data"
|
||||||
DECIDIM_CONF="${VOLUMES_DIR}/decidim/decidim_conf"
|
DECIDIM_CONF="${VOLUMES_DIR}/decidim/decidim_conf"
|
||||||
DECIDIM_DATA="${VOLUMES_DIR}/decidim/decidim_data"
|
DECIDIM_DATA="${VOLUMES_DIR}/decidim/decidim_data"
|
||||||
DECIDIM_LAYER="${LAYERS_DIR}/decidim_0.23.1-210106"
|
DECIDIM_LAYER="${LAYERS_DIR}/decidim_0.23.1-210110"
|
||||||
|
|
||||||
# Create Postgres instance
|
# Create Postgres instance
|
||||||
install -o 105432 -g 105432 -m 700 -d ${POSTGRES_DATA}
|
install -o 105432 -g 105432 -m 700 -d ${POSTGRES_DATA}
|
||||||
@ -28,14 +28,22 @@ install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/migrate
|
|||||||
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/storage
|
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/storage
|
||||||
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/uploads
|
install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/uploads
|
||||||
export DECIDIM_SECRET=$(spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rake secret')
|
export DECIDIM_SECRET=$(spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rake secret')
|
||||||
install -o 108080 -g 108080 -m 640 decidim_conf/environments/production.rb ${DECIDIM_CONF}/environments/production.rb
|
|
||||||
install -o 108080 -g 108080 -m 640 decidim_conf/initializers/decidim.rb ${DECIDIM_CONF}/initializers/decidim.rb
|
install -o 108080 -g 108080 -m 640 decidim_conf/initializers/decidim.rb ${DECIDIM_CONF}/initializers/decidim.rb
|
||||||
envsubst <decidim_conf/application.yml | install -o 108080 -g 108080 -m 640 /dev/stdin ${DECIDIM_CONF}/application.yml
|
envsubst <decidim_conf/application.yml | install -o 108080 -g 108080 -m 640 /dev/stdin ${DECIDIM_CONF}/application.yml
|
||||||
|
|
||||||
# Populate database
|
# Populate database
|
||||||
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim:upgrade'
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim:upgrade'
|
||||||
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails generate delayed_job:active_record'
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails generate delayed_job:active_record'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_calendar:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_decidim_awesome:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_ldap:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_navbar_links:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_navigation_maps:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_time_tracker:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails redirector_engine:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_url_aliases:install:migrations'
|
||||||
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails db:migrate'
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails db:migrate'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails url_aliases:generate:reserved_paths'
|
||||||
|
|
||||||
# Create admin account
|
# Create admin account
|
||||||
export DECIDIM_ADMIN_EMAIL="admin@example.com"
|
export DECIDIM_ADMIN_EMAIL="admin@example.com"
|
||||||
|
@ -6,6 +6,14 @@ spoc-container start decidim-postgres
|
|||||||
|
|
||||||
# Run database migration
|
# Run database migration
|
||||||
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim:upgrade'
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim:upgrade'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_calendar:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_decidim_awesome:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_ldap:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_navbar_links:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_navigation_maps:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_time_tracker:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails redirector_engine:install:migrations'
|
||||||
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails decidim_url_aliases:install:migrations'
|
||||||
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails db:migrate'
|
spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rails db:migrate'
|
||||||
|
|
||||||
# Stop service containers
|
# Stop service containers
|
||||||
|
Loading…
Reference in New Issue
Block a user