Today to tell you how to install and uninstall the plug-in in the Docker container redmine, here said Redmine is 2.x and after the version, the previous version has not been tested, so below this version of please skip.
System: CentOS 6.5 (64-bit)
Software version: Redmine 2.5.3
Redmine_ckeditor 1.0.20
Docker 1.7.1
1. Start Redmine
Docker how to start Redmine, here will not say, after all, even containers can not start, see this article is useless.
2. Copy the plugin into the Docker.
wget Https://github.com/a-ono/redmine_ckeditor/archive/1.0.20.zip
Unzip 1.0.20.zip
MV redmine_ckeditor-1.0.20 Redmine_ckeditor
Cp-r redmine_ckeditor/var/lib/docker/devicemapper/mnt/ 394bb2dec6a5941e204c9462ca58d5df49ed7a1e1a0c03809f01e9465281b4ec/rootfs/home/redmine/redmine/plugins/
3. Install the Plugin
Docker exec-it Redmine Bash
CD Home/redmine/redmine
Apt-get Update
Apt-get Install Imagemagick-y
Bundle Install--without Development test
Bundle EXEC Rake Redmine:plugins:migrate rails_env=production
If the above steps are no problem, then you can restart the Redmine, if you have any questions, please follow the prompts to solve their own.
4. Uninstall Plugin
Bundle EXEC Rake redmine:plugins:migrate name=redmine_ckeditor version=0 rails_env=production
Ps:
Note The plug-in name is the plug-in directory name
Then delete the Redmine_ckeditor folder in the plugins directory, of course, you can also do not remove the removal of the line. Finally restart the Redmine to complete the uninstall plugin.
OK, here is the installation and uninstall of the Redmine plugin.