The following guide will teach you how to install a plugin on Docker Container Redmine 7.x.x stable version on Windows operating system. For our example we will use our Agile plugin.
Note: To see the "Docker Container Redmine 7 installation on Windows" guide, please check here.
1. Copy to Redmine plugins Windows directory
Firstly, you need to download the plugin. Normally it goes in the Downloads folder.
Then you have to unzip the folder by simply right-click on it and then click "extract".
Now copy the unzipped folder to your Windows directory Redmine plugins folder. Normally it is located in C:\docker\redmine\plugins. It should be named more or less like this - "redmine_agile" (for our Agile plugin example).
2. Copy to Docker inner Redmine plugins directory
Afterward, please open your PowerShell and navigate to C:\docker\redmine\plugins. As being into this directory, just execute the below command:
docker cp .\[name_of_the_plugin\ [name_of_your_docker_redmine_container]:usr/src/redmine/plugins
Where:
- name_of_the_plugin is your plugin name
- name_of_your_docker_redmine_container is your Docker Redmine container name
In our example of the Agile plugin the command will look like this:
docker cp .\redmine_agile\ redmine_app:usr/src/redmine/plugins
The redmine_app name of the container could be checked via the command:
docker ps
And also can be checked in the docker-compose.yml file located in the C:\docker\redmine\ directory.
3. Gems installation and plugin database migration
Navigate your PowerShell directory to C:\docker\redmine\ and get into your inner Docker Redmine command line via this command:
docker compose exec redmine bash
Now install the required gems for the plugin via the command:
bundle install
Afterward do the plugin database migration via this command:
bundle exec rake redmine:plugins NAME=[name_of_the_plugin] RAILS_ENV=production
Where:
- name_of_the_plugin is again your plugin folder name
In our example, the command will look like this:
bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
4. Precompile and cache clear
In Redmine 7+ and Rails 8.1+ just copy-pasting the asset files is not enough. They need to be processed explicitly via the precompile command:
bundle exec rake assets:precompile RAILS_ENV=production
And then just clear the Redmine cache as well:
bundle exec rake tmp:cache:clear RAILS_ENV=production
5. Restart container
Exit your innter command line via the following command:
exit
Now execute this command to restart it:
docker restart [your_container_name]
Where:
- your_container_name is the name of your Redmine Docker container - the one we found earlier in the guide
So, the command in our example will look like this:
docker restart redmine_app
6. Check Redmine in your browser
To see if you have done your installation successfully please go to your browser and access your Redmine. In the default configuration it could be done in localhost:8080/admin/info
Here in the plugins' list you will be able to see your newly installed plugin successfully listed.
Video demonstration
To see the installation process in action, please check the video below: