docs(redmine): helmify docs (#32951)

**Description**
<!--
helmify docs
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code
- [x] 📜 Documentation Changes

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [x] 📄 I have made changes to the documentation
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Boemeltrein
2025-03-07 09:45:01 +01:00
committed by GitHub
parent 9b6ce7910f
commit 942e6d8c66
7 changed files with 67 additions and 88 deletions
+67 -88
View File
@@ -2,112 +2,91 @@
title: Custom theme for Redmine
---
This tutorial explains installing the [PurpleMine2 theme](https://github.com/mrliptontea/PurpleMine2) for the Redmine app installed from the TrueCharts catalog.
This tutorial explains installing some themes for Redmine.
## Setup configuration
## Chart deploy configuration
Default configuration with PVC storage
- Add ingress with [codeserver](https://truecharts.org/guides/addons/code-server/) addon.
- Add additional `themes` PVC persistence with `mountPath: "/usr/src/redmine/themes"` Since Redmine v6 location is changed to ./redmine/themes instead of /redmine/public/themes.
- Optional add `plugins` PVC persistence with `mountPath: "/usr/src/redmine/plugins"` This is the folder where you need to unzip your plugins if you want to use some.
Add additional app storage as PVC with Mount path `/usr/src/redmine/public/themes`
Example deployment:
```yaml
// Values.yaml
ingress:
main:
enabled: true
hosts:
- host: redmine.${BASE_DOMAIN}
integrations:
traefik:
enabled: true
certManager:
enabled: true
certificateIssuer: cloudflare
![image](./img/image1.png)
persistence:
themes:
enabled: true
mountPath: "/usr/src/redmine/themes"
plugins:
enabled: true
mountPath: "/usr/src/redmine/plugins"
You might also want to add `/usr/src/redmine/plugins` folder as PVC mount. This is the folder where you need to unzip your plugins if you want to use some.
addons:
codeserver:
enabled: true
ingress:
enabled: true
hosts:
- host: cs-redmine.${BASE_DOMAIN}
integrations:
certManager:
enabled: true
certificateIssuer: cloudflare
traefik:
enabled: true
```
As of the time of writing the app is not running normally when created with settings RunAsUser 568 RunAsGroup 568
## Check the application
![image](./img/image2.png)
Changing the configuration to RunAsUser 999 RunAsGroup 999 solves the issue.
Check this [issue](https://github.com/truecharts/charts/issues/15079) for details
Click on Save. Wait for the app to deploy.
Open the app. Login with default credentials (see below). You will be prompted to change the password.
Check if you can open the application in your browser. Login with default credentials and you will be prompted to change the password.
- User: `admin`
- Password: `admin`
Go to `Administration->Settings->Display`. See that the only available theme is Default.
Go to `Administration -> Settings -> Display`. See that there are three available themes which are Default, Alternate and Classic.
## Mount PVC volumes using HeavyScript
## Add themes via codeserver addon to Redmine
Now you can close the Redmine webpage and open the TrueNAS shell.
- Browse to your codeserver addon.
- Add the themes in the `redmine\themes` folder.
- Per theme it can be different how to achive this.
We will need to mount the PVC volumes using the HeavyScript.
If you don't have [HeavyScript](https://github.com/Heavybullets8/heavy_script) installed simply run this command to install it
For example `redmine_theme_farend_bleuclair`:
- Open integrated terminal in `redmine\themes`
- `git clone https://github.com/farend/redmine_theme_farend_bleuclair.git themes/bleuclair`
- Restart Redmine for example, via add the `.Values`
```yaml
global:
stopAll: false
```
- and set it back to true.
```shell
sudo curl -s https://raw.githubusercontent.com/Heavybullets8/heavy_script/main/functions/deploy.sh | bash && source "$HOME/.bashrc" 2>/dev/null && source "$HOME/.zshrc" 2>/dev/null
```
For example `PurpleMine2`:
- Open integrated terminal in `redmine\themes`
- `wget https://github.com/mrliptontea/PurpleMine2/archive/master.zip`
- Install extension `VSCode Archive` in codeserver
- Decrompress
- Remove `master.zip`
- Move `PurpleMine2-master` directly in `themes` folder
then run
Some images from codeserver:
```shell
sudo heavyscript
![image1](./img/image1.png)
# Move on the menu to
# Application Options -> Mount Unmount PVC storage -> Mount -> Redmine
![image2](./img/image2.png)
Would you like to mount anything else? (y/N): n
```
## Use Moonlight Commander to copy the themes into the mounted volume
Now the redmine themes folder is available as the system path and we need to copy the theme files there.
I have already SMB Share setup so I copy the files into the SMB share. You can use Filebrowser app to upload the theme as well.
So I'm downloading the theme from the [upstream repository](https://github.com/mrliptontea/PurpleMine2)
And Unzip it to my SMB share folder.
Now in TrueNas shell I use
```shell
sudo mc
```
To launch the moonlight commander app. I navigate to my SMB share and to the mounted PVC path and copy the files over
![image](./img/image3.png)
## Change permissions of the themes files
Now we need to exit moonlight commander and navigate to the mounted themes folder in console using
```shell
cd /mnt/mounted_pvc/redmine/redmine-persist-list-0
ls - la
```
![image](./img/image4.png)
I also copied the standard Redmine themes alternate and classic to this folder
But you can see that all of the copied files are owned by my user and the group root. This means the Redmine will not be able to access the files.
Change the owner of the files with the following command
```shell
sudo chown -R root:apps PurpleMine2-master
sudo chmod -R 775 PurpleMine2-master
```
Repeat this commands for every theme folder you copied. And double check that owner have been changed and the permissions applied
![image](./img/image5.png)
## Unmount volumes and launch the app
Now you can unmount the volume using HeavyScript command
```shell
sudo heavyscript pvc --unmount redmine
```
Now run the application using `sudo heavyscript` Application Options -> Start Application -> Redmine
## Apply the theme
@@ -115,4 +94,4 @@ Open the Redmine web page. Sign in with your new password for Admin.
Go to `Administration` -> `Settings` -> `Display`. Pick the newly added theme
![image](./img/image6.png)
![image3](./img/image3.png)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB