/redmine-openshift

Template for Redmine deployment on OpenShift Container Platform

Primary LanguageRuby

redmine-openshift

Template for Redmine deployment on OpenShift Container Platform, using mysql database in ephemeral mode.

Redmine requires root permission so ensure to give this permission to your project before launching this application (i.e. running oc adm policy add-scc-to-user anyuid -z default -n yourprojectname)

So the steps to deploy this application are:

  1. Create the project: oc new-project yourprojectname

  2. Give root permissions to the default service account: oc adm policy add-scc-to-user anyuid -z default -n yourprojectname

  3. Create the template: oc create -f https://raw.githubusercontent.com/antoniogallegosaez/redmine-openshift/master/redmine-mysql-ephemeral.yaml

  4. From the webconsole, access to the project, press Add To Project and create the app using the previously created template.

  5. Please wait until the pods are ready, then you can log-in with the following Redmine credentials: admin/admin

ALTER TABLE issues CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ALTER TABLE journals CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ALTER TABLE wiki_contents CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

以下这个已经在sh文件中更新 In config/database.yml encoding: utf8 to encoding: utf8mb4


添加环境变量 REDMINE_PLUGINS_MIGRATE = 1